インテル® Fortran コンパイラー 19.0 デベロッパー・ガイドおよびリファレンス

HUGE

Inquiry Intrinsic Function (Generic): Returns the largest number in the model representing the same type and kind parameters as the argument.

result = HUGE (x)

x

(Input) Must be of type integer or real; it can be scalar or array valued.

Results

The result is a scalar of the same type and kind parameters as x. If x is of type integer, the result has the value r q - 1. If x is of type real, the result has the value (1 - b -p)b emax.

Integer parameters r and q are defined in Model for Integer Data; real parameters b, p, and e maxare defined in Model for Real Data.

Example

If X is of type REAL(4), HUGE (X) has the value (1 - 2 -24) x 2 128.

See Also