Phix feature request
- Posted by begin Apr 05, 2019
- 1004 views
would it be possible to get the below function or are these already available?
Thanks richard
Syntax atom Result = NaN() Description Returns the special floating-point value representing 'Not a Number'. This value is returned from invalid calculations such as calculating the square root of a negative number.
Syntax atom Result = Infinity() Description Returns the special floating-point value representing positive infinity. Negative infinity can be calculated using "-Infinity()".
Syntax atom Result = IsInfinity(Value/Var) Description Returns nonzero if the input value represents positive or negative infinity and zero otherwise.
Syntax atom Result = IsNaN(Value/Var) Description Returns nonzero if the given value 'Not a Number' and zero otherwise. This value is the result of some invalid calculations. It can also be generated using the NaN() function.