Numeric predicates
Reference documentation for Expressif predicates in the numeric scope.
| Name | Overview |
|---|---|
has-remainder | Returns true if the division of the numeric value passed as argument by the modulus provided as parameter value is equal to the required remainder. Returns false otherwise. |
is-divisible-by | Returns true if the numeric value passed as argument is evenly divisible by the divisor provided as parameter. Returns false otherwise. |
is-equal-to | Returns true if the numeric value passed as argument is equal to the numeric value passed as parameter. |
is-even | Returns true if the numeric value passed as argument is even. Returns false otherwise. |
is-greater-than | Returns true if the numeric value passed as argument is greater than the numeric value passed as parameter. Returns false otherwise. |
is-greater-than-or-equal | Returns true if the numeric value passed as argument is greater than or equal to the numeric value passed as parameter. Returns false otherwise. |
is-integer | Returns true if the numeric value passed as argument is an integer value. Returns false otherwise. |
is-less-than | Returns true if the numeric value passed as argument is less than the numeric value passed as parameter. Returns false otherwise. |
is-less-than-or-equal | Returns true if the numeric value passed as argument is less than or equal to the numeric value passed as parameter. Returns false otherwise. |
is-negative | Returns true if the numeric argument is less than 0. |
is-negative-or-zero | Returns true if the numeric argument is less or equal to 0. |
is-odd | Returns true if the numeric value passed as argument is odd. Returns false otherwise. |
is-one | Returns true if the numeric argument is equal to 1. |
is-opposite | Returns true if the numeric value passed as argument additive inverse of the numeric value passed as parameter. Returns false otherwise. |
is-positive | Returns true if the numeric argument is greater than 0. |
is-positive-or-zero | Returns true if the numeric argument is greater or equal to 0. |
is-within-interval | Returns true if the numeric value passed as argument is between the lower bound and the upper bound defined in the interval. Returns false otherwise. |
is-zero | Returns true if the numeric argument is equal to 0. |
is-zero-or-null | Returns true if the numeric value passed as argument is equal to 0 or null. Returns false otherwise. |