PRECISION(3f)

DESCRIPTION
PRECISION(X) returns the decimal precision in the model of the type of X.

STANDARD
Fortran 95 and later

CLASS
Inquiry function

SYNTAX
RESULT = PRECISION(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.

SEE ALSO
SELECTED_REAL_KIND, RANGE

EXAMPLE
          program prec_and_range
            real(kind=4) :: x(2)
            complex(kind=8) :: y

            print *, precision(x), range(x)
            print *, precision(y), range(y)
          end program prec_and_range

AUTHOR

This information was taken from the GFortran documentation (https://gcc.gnu.org/onlinedocs/gcc-5.3.0/gfortran/) and converted to a manpage by AstroFloyd (http://astrofloyd.org).