Available in all subroutines.

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


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

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.