Built-in functions: float_infp()

The function float_infp() returns a special floating point value called Positive Infinity (+INF).

Declaration

float float_infp()

Discussion

The function float_infp() returns a special constant value which represents a positive infinity floating point operand. Such value can result from mathematical operations performed with very large arguments like the power of a number calculation. The value returned by the float_infp() function can be used to initialize variables.

var float v1 = float_infp(); // v1 = +INF var bool b1 = v1.isinfp; // b1 = true

See also the float instant properties isinfp and isinf.