Skip to main content

Compare

Given two real numbers x and y, compare function is defined as

compare(x,y)=1, if x>y-1, if x<y0, if x=y

Syntax

compare(Real, Real)

Description

Given two reals xx and yy, returns its comparison as defined above.

calc.compare.calc.png