[UP]


Manual Reference Pages  - precision (3)

NAME

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

CONTENTS

Syntax
Description
Arguments
Return Value
Example
Standard
Class
See Also

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
      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]], [[range]]


precision (3) March 19, 2019
Generated by manServer 1.08 from ad0b7a25-b9c7-4e11-abaf-462d7c82a509 using man macros.