Purpose
Returns the decimal exponent range in the model representing integer or real numbers with the same kind type parameter as the argument.
Class
Inquiry function
Argument Type and Attributes
Result Type and Attributes
Default integer scalar.
Result Value
INT( LOG10( HUGE(X) ) )
INT( MIN( LOG10( HUGE(X) ), -LOG10( TINY(X) ) ) )
+-------------------------------IBM Extension--------------------------------+
Thus:
Type RANGE ------------------------------ integer(1) 2 integer(2) 4 integer(4) 9 integer(8) 18 real(4) , complex(4) 37 real(8) , complex(8) 307 real(16) , complex(16) 291
+----------------------------End of IBM Extension----------------------------+
Examples
+-------------------------------IBM Extension--------------------------------+
X is of type real(4):
+----------------------------End of IBM Extension----------------------------+