Product Documentation
Cadence SKILL Language Reference
Product Version IC23.1, November 2023

isNaN

isNaN( 
f_flownum 
) 
=> t / nil

Description

Checks whether the given flownum argument represents NaN (not-a-number). Else, it returns nil.

Arguments

f_flownum

A floating-point number.

Value Returned

t

If f_flownum is NaN.

nil

If f_flownum is a floating-point number.

Examples

nan = 0.0 * 2.0 * 1e999
isNan (nan)
=> t
isNan (123.456) 
=> nil

Related Topics

Arithmetic Functions


Return to top
 ⠀
X