9.3.40 DIGITS (X)

Description:  Returns the number of significant digits for numbers of the same type and kind parameters as the argument. 
Class:  Inquiry function; Generic 
Arguments:  X must be of type integer or real; it can be scalar or array valued.  
Results:  The result is a scalar of type default integer.

The result has the value q if X is of type integer; it has the value p if X is of type real. Integer parameter q is defined in Section D.1; real parameter p is defined in Section D.2.  

Examples

If X is of type REAL(4), DIGITS (X) has the value 24.


Previous Page Next Page Table of Contents