NAME

isnumeric - test if a value is a number

SYNOPSIS

val.isnumeric()

DESCRIPTION

The isnumeric() method tests whether val is a numeric type (either an integer or a floating-point number).

RETURN VALUE

true if val is numeric, false otherwise.

ERRORS

None.

EXAMPLE

    42->isnumeric()
true

    3.14->isnumeric()
true

    "hello".isnumeric()
false

SEE ALSO

typeof
isinteger
isfloat