up previous next
IsNumber

checks if the argument is a number

Syntax
IsNumber(E:OBJECT):BOOL

Description
This function returns True if E has type INT, RAT, or ZMOD. Otherwise, it returns False. ***Suppressed***

Example
  Use R ::= QQ[x,y];
  IsNumber(x+y);
False
-------------------------------
  IsNumber(3);
True
-------------------------------
  IsNumber(3%5);
True
-------------------------------