IntegerRetractions S¶
retract.spad line 33 [edit on github]
Provides integer testing and retraction functions. Date Created: March 1990
- integer?: S -> Boolean
integer?(x)
istrue
ifx
is an integer,false
otherwise.
- integer: S -> Integer
integer(x)
returnsx
as an integer; error ifx
is not an integer.
- integerIfCan: S -> Union(Integer, failed)
integerIfCan(x)
returnsx
as an integer, “failed” ifx
is not an integer.