addaptic

Reference Comparison

lz_max

Which of two numbers is the larger.

long lz_max( CLZNumber* leftOperand, CLZNumber* rightOperand );

Says which operand wins; it writes no number. Either side flagged infinite or not-a-number answers kUnordered.

Examples

CallAnswer
lz_max( 1, 2 )kRight
lz_max( 3, 2 )kLeft
lz_max( 2, 2.0 )kEqual

Each answer is what Addaptic printed for the call, at 36 places unless a setting is shown.

Returns

A code, not a number: kLeft (-1), kEqual (0), kRight (1), kUnordered (2).

See also

  • lz_min Which of two numbers is the smaller.
  • lz_compare Whether the left number is less than, equal to or greater than the right.