LF Fortran 95

MINEXPONENT Function

Description

The MINEXPONENT function returns the minimum binary exponent possible for a REAL argument.

Syntax

MINEXPONENT (x)

Arguments

x is an INTENT(IN) scalar or array of type REAL.

Result

The result is a scalar default INTEGER. Its value is the most negative binary exponent possible in the data type of x.

Example

write(*,*) minexponent(1.e0) ! writes -125 write(*,*) minexponent(1.d0) ! writes -1021 write(*,*) minexponent(1.q0) ! writes -16381