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
An INTENT(IN) INTEGER or REAL

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