Handbook
Glossary
fp-nan? ( x -- ? )
Factor handbook
»
The language
»
Numbers
»
Floats
»
Bitwise operations on floats
Prev:
fp-special? ( x -- ? )
Next:
fp-qnan? ( x -- ? )
Vocabulary
math
Inputs
x
a
real
Outputs
?
a
boolean
Word description
Tests if
x
is an IEEE Not-a-Number value. While
x
can be any real number, this word will only ever yield true if
x
is a
float
.
See also
fp-special?
,
fp-qnan?
,
fp-snan?
,
fp-infinity?
,
fp-nan-payload
,
<fp-nan>
Definition
IN:
math
GENERIC:
fp-nan?
( x -- ? )
Methods
USING:
kernel
math
math.private
;
M:
float
fp-nan?
dup
float=
not
;
USING:
kernel
math
;
M:
object
fp-nan?
drop
f
;
inline