Returns the decimal precision in the model representing real numbers with the same kind type parameter as the argument.
Inquiry function
Default integer scalar.
The result is:
INT( (DIGITS(X) - 1) * LOG10(2) )
Therefore,
Type Precision -------------------- --------- real(4) , complex(4) 6 real(8) , complex(8) 15 real(16) , complex(16) 31
PRECISION (X) = INT( (24 - 1) * LOG10(2.) ) = INT(6.92 ...) = 6 for X of type real(4). See Real data model.