Intel® Fortran Compiler Classic and Intel® Fortran Compiler Developer Guide and Reference

ID 767251
Date 7/13/2023
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

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.