IsNumberNAN
From GECK
A function added by the SUP NVSE Plugin.
Contents
Description
Returns if a float is a NAN number (unrepresentable).
Syntax
(isNan:int) IsNumberNAN fValue:float
Example
set isNan to IsNumberNAN MyFloat
Will return 1\0 depending on whether MyFloat is a NAN number or not.
set myFloat to IsNumberNAN
Will set MyFloat to a NAN number. Note that it doesn't work on an int variable.
Notes
- For instance, a NAN number could be received by passing an invalid argument to a trigonometry function - "arcsin(2)".
- This function can be used to determine whether ReadINIFloatFromFileAlt is called on a invalid INI setting.