SPACING(X)

Purpose

Returns the absolute spacing of the model numbers near the argument value.

Class

Elemental function

Argument type and attributes

X
must be of type real.

Result type and attributes

Same as X.

Result value

If X is not 0, the result is:

2.0EXPONENT(X) - DIGITS(X)

If X is 0, the result is the same as that of TINY(X).

Examples

IBM extension begins SPACING (3.0) = 2.02 - 24 = 2.0(-22) See Real data model. IBM extension ends