range(3f) - [FORTRAN:INTRINSIC:NUMERIC MODEL] Decimal exponent range of a real kind
result = range(x)
range(x) returns the decimal exponent range in the model of the type of X.
X Shall be of type REAL or COMPLEX.
The return value is of type INTEGER and of the default integer kind.
Sample program:
program demo_range implicit none real(kind=4) :: x(2) complex(kind=8) :: y print *, precision(x), range(x) print *, precision(y), range(y) end program demo_range
[[Fortran 95]] and later
[[Inquiry function]]
selected_real_kind(3), precision(3)
range (3) | March 11, 2021 |