fl_is_eq


fl_is_eq(fl1, @rest ...)
fl_is_lt(fl1, @rest ...) 
fl_is_gt(fl1, @rest ...) 
fl_is_lteq(fl1, @rest ...) 
fl_is_gteq(fl1, @rest ...) 
      

Fl_is_eq – return true if its arguments are equal, return false otherwise. Raise an error if an argument is not a flonum.

Fl_is_lt – return true if its arguments are monotonically increasing, i.e., each argument is greater than the preceding ones, return false otherwise. Raise an error if an argument is not a flonum.

Fl_is_gt – return true if its arguments are monotonically decreasing, return false otherwise. Raise an error if an argument is not a flonum.

Fl_is_lteq – return true if its arguments are monotonically nondecreasing, i.e., each argument is not less than the preceding ones, return false otherwise. Raise an error if an argument is not a flonum.

Fl_is_gteq – return true if its arguments are monotonically non-increasing, return false otherwise. Raise an error if an argument is not a flonum.

Comparisons involving a NaN always return false.

Examples:


fl_is_eq(1., 1.0)
// true

fl_is_lteq(1., 1., 2., 3., 4., 4.2)
// true
      

Also see:

fladd
fl_is_zero


Core Module Index | Contents