math.is_nan

BOOLmath.is_nanFLOATx

Available inall subroutines.

Determines whether a floating point value is NaN (Not a Number). See floating point classifications for more information.

Example

declare local var.f FLOAT;
set var.f = 1;
set var.f /= 0;
if (math.is_nan(var.f)) {
log "division by zero";
}