Certain functions (EXPONENT, FRACTION, NEAREST, RRSPACING, SCALE, SET_EXPONENT and SPACING) return values related to components of the model set of real numbers. For a description of this model, see the Model for Real Data.
Name | Procedure Type | Description |
---|---|---|
DIGITS | Intrinsic Function | Returns number of significant digits for data of the same type as the argument. |
EPSILON | Intrinsic Function | Returns the smallest positive number that when added to one produces a number greater than one for data of the same type as the argument. |
EXPONENT | Intrinsic Function | Returns the exponent part of the representation of x. |
FRACTION | Intrinsic Function | Returns the fractional part of the representation of the argument. |
HUGE | Intrinsic Function | Returns largest number that can be represented by data of type the argument. |
MAXEXPONENT | Intrinsic Function | Returns the largest positive decimal exponent for data of the same type as the argument. |
MINEXPONENT | Intrinsic Function | Returns the largest negative decimal exponent for data of the same type as the argument. |
NEAREST | Intrinsic Function | Returns the nearest different machine representable number to the first argument in the direction of the sign of the second argument. |
PRECISION | Intrinsic Function | Returns the number of significant digits for data of the same type as the argument. |
RADIX | Intrinsic Function | Returns the base for data of the same type as the argument. |
RANGE | Intrinsic Function | Returns the decimal exponent range for data of the same type as the argument. |
RRSPACING | Intrinsic Function | Returns the reciprocal of the relative spacing of numbers near the argument. |
SCALE | Intrinsic Function | Multiplies the first argument by 2 raised to the power of the second argument. |
SET_EXPONENT | Intrinsic Function | Returns a number whose fractional part is the first argument and whose exponential part is the second argument. |
SPACING | Intrinsic Function | Returns the absolute spacing of numbers near the argument. |
TINY | Intrinsic Function | Returns smallest positive number that can be represented by data of type of the argument. |
The portability routines GETCONTROLFPQQ, GETSTATUSFPQQ, LCWRQQ, SCWRQQ, SETCONTROLFPQQ, and SSWRQQ also supply this functionality.