number= ( x y -- ? )
Factor handbook » The language » Numbers » Arithmetic » Number protocol

Prev:>= ( x y -- ? )


Vocabulary
math

Inputs
xa number
ya number


Outputs
?a boolean


Word description
Tests if two numbers have the same numeric value.

Notes
This word differs from = in that it disregards differences in type when comparing numbers.

This word performs an unordered comparison on floating point numbers. See Floating point comparison operations for an explanation.

Examples
USING: math prettyprint ; 3.0 3 number= .
t

USING: kernel math prettyprint ; 3.0 3 = .
f


Definition


Methods