< ( x y -- ? )
Factor documentation > Factor handbook > The language > Numbers > Arithmetic > Number protocol
Prev:Division by zero
Next:<= ( x y -- ? )


Vocabulary
math

Inputs and outputs
xa real
ya real
?a boolean


Word description
Tests if x is less than y.

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

Definition
IN: math

MATH: < ( x y -- ? ) foldable flushable


Methods
USING: math math.private ;

M: bignum < bignum< ; inline


USING: math math.private ;

M: fixnum < fixnum< ; inline


USING: math math.private ;

M: float < float< ; inline


USING: math math.ratios.private ;

M: ratio < scale < ;