Sign in Join
FPDoc Onlineexperiment

CompareValue function

In unit Math

Compare 2 values.

Declaration

pascal
function CompareValue(const A: Integer; const B: Integer)
: TValueRelationship

Description

CompareValue compares 2 integer or floating point values A and B and returns one of the following values:

-1
if A<B
0
if A=B
1
if A>B

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.