VocabularymathInputsOutputsWord descriptionTests if
x is an IEEE Infinity value. While
x can be any real number, this word will only ever yield true if
x is a
float.
ExamplesUSING: math prettyprint ;
1/0. fp-infinity? .
t
USING: io kernel math ;
-1/0. [ fp-infinity? ] [ 0 < ] bi and [ "negative infinity" print ] when
negative infinity
See alsofp-special?,
fp-nan?,
fp-qnan?,
fp-snan?,
fp-nan-payload,
<fp-nan>DefinitionMethods