DIGITS(3f)

DESCRIPTION
DIGITS(X) returns the number of significant binary digits of the internal model representation of X. For example, on a system using a 32-bit floating point representation, a default real number would likely return 24.

STANDARD
Fortran 95 and later

CLASS
Inquiry function

SYNTAX
RESULT = DIGITS(X)

ARGUMENTS

X The type may be INTEGER or REAL.

RETURN VALUE
The return value is of type INTEGER.

EXAMPLE
          program test_digits
              integer :: i = 12345
              real :: x = 3.143
              real(8) :: y = 2.33
              print *, digits(i)
              print *, digits(x)
              print *, digits(y)
          end program test_digits

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).