HomeManualTopicsTypesSymbols

std_types::real/std::less

implements the *less* operation for real numbers

Parameters

left: a real number
right: any numeric value

Result

result: true if left is less than right, false otherwise

Description

If the right argument is an integer then right is converted to a real value before the comparison.

Example

dump! `(4.0 < 4.0)

Output

(4.0 < 4.0): <false>

Example

dump! `(4.0 < 4)

Output

(4.0 < 4): <false>

Topic

Numbers

Implements

std::less compares two objects in an object specific way

See also

std_types::integer the prototype object for all integral numbers
std_types::real the prototype object for all non-integral numbers
std::equal compares two objects for equality