math.is_normal()

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

Format

BOOL
math.is_normal(FLOAT x)

Examples

1
2
3
4
# zeroes are not normals
if (!math.is_normal(0)) {
  log "not a normal";
}