IsInfinity

int IsInfinity (double number);

Purpose

Checks if the input is infinity (Inf).

Parameters

Input
Name Type Description
number double Input the double precision quantity to be checked.

Return Value

Name Type Description
Result integer Result is 1 for positive infinity (+Inf), -1 for negative infinity (-Inf), and 0 otherwise.