Factor Documentation
|
Home
|
Glossary
|
Search
factorcode.org
number? ( object -- ? )
Vocabulary
math
Inputs and outputs
object
an
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
;