DIGITS(X)

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

X
An INTENT(IN) INTEGER or REAL. The actual argument corresponding to X can be scalar or array valued.

Result type and attributes

Default integer scalar.

Result value

IBM extension ends

Examples

IBM extension begins DIGITS (X) = 63, where X is of type integer(8) (see Data representation models). IBM extension ends