HomeManualTopicsTypesSymbols

std_types::real/std::equal

implements the *equal* operation for real numbers

Parameters

left: a real number
right: any numeric value

Result

result: true if left and right are numerically equal, 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): <true>

Example

dump! `(4.0 == 4)

Output

(4.0 == 4): <true>

Topic

Numbers

Implements

std::equal compares two objects for equality

See also

std_types::integer the prototype object for all integral numbers
std_types::real the prototype object for all non-integral numbers
std::less compares two objects in an object specific way