HomeManualTopicsTypesSymbols

std_types::positive_integer/std::equal

returns true if both arguments are numerically equal

Parameters

left: a positive integer value
right: any numeric value

Result

result: true if left and right are numerically equal, false otherwise

Description

If the right argument is a real number then left is converted to a real value before the comparison.

Example

dump! `(4 == 4)

Output

(4 == 4): <true>

Example

dump! `(4 == 4.0)

Output

(4 == 4.0): <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