Detecting the type of user input

The input you will get, will always be a string.
You can test whether it is a number using parse , cf. Numbers · The Julia Language
or also the thread Type-safe conversion of strings to numbers

3 Likes