math.is_infinite

BOOLmath.is_infiniteFLOATx

Available in all subroutines.

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

Example

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";
}

User contributed notes

We welcome comments that add use cases, ideas, tips, and caveats. All comments will be moderated before publication. To post support questions, visit our support center and we'll find you the help you need.