HUGE(X)

Purpose

Returns the largest number in the model representing numbers of the same type and kind type parameter as the argument.

Class

Inquiry function

Argument type and attributes

X
must be of type integer or real. It may be a scalar or an array.

Result type and attributes

Scalar of the same type and kind type parameter as X.

Result value

Examples

IBM extension begins

HUGE (X) = (1D0 - 2D0**-53) * (2D0**1024) for X of type real(8).

HUGE (X) = (2**63) - 1 for X of type integer(8).

See Data representation models.

IBM extension ends