Data Representation Models

Several of the numeric intrinsic functions are defined by a model set for integers (for each intrinsic kind used) and reals (for each real kind used). The bit functions are defined by a model set for bits (binary digits).

The following intrinsic functions provide information on the data representation models:

Intrinsic function Model Value returned
BIT_SIZE Bit The number of bits (s) in the bit model
DIGITS Integer or Real The number of significant digits in the model for the argument
EPSILON Real The number that is almost negligible when compared to one
EXPONENT Real The value of the exponent part of a real argument
FRACTION Real The fractional part of a real argument
HUGE Integer or Real The largest number in the model for the argument
MAXEXPONENT Real The maximum exponent in the model for the argument
MINEXPONENT Real The minimum exponent in the model for the argument
NEAREST Real The nearest different machine-representable number in a given direction
PRECISION Real The decimal precision (real or complex) of the argument
RADIX Integer or Real The base of the model for the argument
RANGE Integer or Real The decimal exponent range of the model for the argument
RRSPACING Real The reciprocal of the relative spacing near the argument
SCALE Real The value of the exponent part (of the model for the argument) changed by a specified value
SET_EXPONENT Real The value of the exponent part (of the model for the argument) set to a specified value
SPACING Real The value of the absolute spacing of model numbers near the argument
TINY Real The smallest positive number in the model for the argument

For more information on the range of values for each data type (and kind), see Building Applications.

This appendix discusses the following topics: