[UP]


Manual Reference Pages  - range (3)

NAME

range(3f) - [FORTRAN:INTRINSIC:NUMERIC MODEL] Decimal exponent range of a real kind

SYNTAX

result = range(x)

DESCRIPTION

range(x) returns the decimal exponent range in the model of the type of X.

ARGUMENTS

X Shall be of type REAL or COMPLEX.

RETURN VALUE

The return value is of type INTEGER and of the default integer kind.

EXAMPLE

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

STANDARD

[[Fortran 95]] and later

CLASS

[[Inquiry function]]

SEE ALSO

selected_real_kind(3), precision(3)


range (3) March 11, 2021
Generated by manServer 1.08 from cb84b856-501d-44aa-abed-d5be198c7271 using man macros.