Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 354 Bytes

559-data-isnumber.markdown

File metadata and controls

18 lines (12 loc) · 354 Bytes

ISNUMBER

b = ISNUMBER (x)

Returns true if x is a number or can be converted to a number.

Example

print ISNUMBER(12) ' Output 1 print ISNUMBER("12") ' Output 1 print ISNUMBER("12E+2") ' Output 1 print ISNUMBER("abc") ' Output 0 print ISNUMBER("1+2") ' Output 0 print ISNUMBER("int(2.4)") ' Output 0 
close