maxexponent(3f) - [FORTRAN:INTRINSIC:NUMERIC MODEL] Maximum exponent of a real kind
result = maxexponent(x)
maxexponent(x) returns the maximum exponent in the model of the type of X.
X Shall be of type REAL.
The return value is of type INTEGER and of the default integer kind.
Sample program:
program demo_maxexponent implicit none real(kind=4) :: x real(kind=8) :: yprint *, minexponent(x), maxexponent(x) print *, minexponent(y), maxexponent(y) end program demo_maxexponent
[[Fortran 95]] and later
[[Inquiry function]]
maxexponent (3) | March 11, 2021 |