Purpose
Returns the number of significant digits for numbers whose type and kind type parameter are the same as the argument.
Class
Inquiry function
Argument Type and Attributes
Result Type and Attributes
Default integer scalar.
+-------------------------------IBM Extension--------------------------------+
Result Value
type bits ----------- ------ integer(1) 07 integer(2) 15 integer(4) 31 integer(8) 63
type bits ---------- ------ real(4) 24 real(8) 53 real(16) 106
+----------------------------End of IBM Extension----------------------------+
+-------------------------------IBM Extension--------------------------------+
Examples
DIGITS (X) = 63, where X is of type integer(8) (see Data Representation Models).
+----------------------------End of IBM Extension----------------------------+