NUMERIC()

NUMERIC(V)

RETURNS 1 IF V$ REPRESENTS A NUMERIC VALUE, 0 OTHERWISE

  • Type: Function
  • Parameter: 1
  • Group: Mathematics

ACTION

The function NUMERIC(V) returns 1 if V$ represents a numeric value, 0 otherwise.

V is a real or an integer.

Remark: a string representing a numeric value can be converted into a number by the function VAL.

SYNTAX: Result=NUMERIC(V)

  • V = real or integer value.

USE

  • The function NUMERIC() is used to know if a string can be evaluated to a numeric value.

ERROR

  • None.

EXAMPLE

print numeric("3.1")

print "Result = 1"

SEE ALSO

VAL()