WCSTools programs

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

Telescope Data Center
0string is not any sort of number
1String is an integer
2String is a floating point number
3String is a hh:mm:ss.ss time
4String is a yyyy-mm-dd date