Returns 0 if the two operands are equal, 1 if the left_operand is larger than the right_operand, -1 otherwise.

number:compare($left_operand, $right_operand, $decimal_points=0)

number:compare(2,2)
#=> 0

#===

number:compare(2,1)
#=> 1

#===

number:compare(1,2)
#=> -1

Copyright ©2013-2022 SunSed®. All rights reserved.