Handbook
Glossary
fp-nan-payload ( x -- bits )
Factor handbook
»
The language
»
Numbers
»
Floats
»
Bitwise operations on floats
Prev:
fp-infinity? ( x -- ? )
Next:
fp-bitwise= ( x y -- ? )
Vocabulary
math
Inputs
x
a
real
Outputs
bits
an
integer
Word description
If
x
is an IEEE Not-a-Number value, returns the payload encoded in the value. Returns
f
if
x
is not a
float
.
See also
fp-special?
,
fp-nan?
,
fp-qnan?
,
fp-snan?
,
fp-infinity?
,
<fp-nan>
Definition
IN:
math
GENERIC:
fp-nan-payload
( x -- bits )
Methods
USING:
math
;
M:
float
fp-nan-payload
double>bits
52
2^
1
-
bitand
;
inline