[UP]


Manual Reference Pages  - precision (3)

NAME

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

SYNTAX

result = precision(x)

DESCRIPTION

precision(x) returns the decimal precision 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_precision
    implicit none
      real(kind=4) :: x(2)
      complex(kind=8) :: y

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

STANDARD

[[Fortran 95]] and later

CLASS

[[Inquiry function]]

SEE ALSO

selected_real_kind(3), range(3)


precision (3) March 11, 2021
Generated by manServer 1.08 from 3384f89a-efc2-43db-87d2-798ed1c8cdb9 using man macros.