math.is_infinite()

Determines whether a floating point value is an infinity. See floating point classifications for more information.

Format

BOOL
math.is_infinite(FLOAT x)

Examples

1
2
3
4
5
6
7
declare local var.f FLOAT;

set var.f = math.POS_INFINITY;
set var.f -= 1; # +∞ - 1 produces +∞
if (math.is_infinite(var.f)) {
  log "infinity";
}