number? ( object -- ? )


Vocabulary
math

Inputs and outputs
objectan object
?a boolean


Word description
Tests if the object is an instance of the number class.

Definition
USING: kernel ;

IN: math

: number? ( object -- ? )
dup complex? [ drop t ] [ real? ] if ;