general/misc/SSW/
is_num.pro
Name: is_num Purpose: determines if input is a number Inputs: num: the number can be single element or array Outputs: 1:yes 0:no Keywords: unsigned: set this if you only want to know if it is unsigned signed: set this if you only want to know if it is signed real: set this if you want to know only if it is real complex: set this if want to know only if it is complex floating: set this if you want to know if it is floating point integer: set this is you want to know if it is not floating point single: set this if you want to know if it is single precision floating point double: set this if you want to know if it is double precision floating point NOTES: if you can think of other classes of number worth testing that involve more than one idl type feel free to add if you specify and impossible numerical class like: b = is_num(1,/signed,/unsigned) -or- b = is_num(1,/unsigned,/complex) it will return 0 LAST MODIFICATION: 02/11/01 $LastChangedBy: davin-win $ $LastChangedDate: 2007-10-22 07:26:16 -0700 (Mon, 22 Oct 2007) $ $LastChangedRevision: 1758 $ $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/ssl_general/trunk/tplot/tplot.pro $
Routines
File attributes
Modification date: | Thu Feb 13 16:43:43 2014 |
Lines: | 37 |