int IsInfinity (double number);
Checks if the input is infinity (Inf).
Input | ||
Name | Type | Description |
number | double | Input the double precision quantity to be checked. |
Name | Type | Description |
Result | integer | Result is 1 for positive infinity (+Inf), -1 for negative infinity (-Inf), and 0 otherwise. |