isnum
Return code telling whether the input string is numerical
isnum
returns an integer code depending on how it identifies the input number:
Command Line Arguments
string
ASCII character string
Examples
$ isnum 2015-10-01 4 $ isnum 10:00:00 3 $ isnum 10.5 2 $ isnum 10 1 $ isnum abc 0
Last updated 06 November 2015 by
Jessica Mink
0
string is not any sort of number
1
String is an integer
2
String is a floating point number
3
String is a hh:mm:ss.ss time
4
String is a yyyy-mm-dd date