RRSPACING

Elemental Intrinsic Function (Generic): Returns the reciprocal of the relative spacing of model numbers near the argument value.

Syntax

result = RRSPACING (x)

x
(Input) Must be of type real.

Results:

The result type is the same as x. The result has the value |x * b-e| x bp. Parameters b, e, p are defined in Model for Real Data.

Compatibility

CONSOLE STANDARD GRAPHICS QUICKWIN GRAPHICS WINDOWS DLL LIB

See Also: SPACING, Data Representation Models

Examples

If -3.0 is a REAL(4) value, RRSPACING (-3.0) has the value 0.75 x 224.

The following shows another example:

 REAL(4) res4
 REAL(8) res8, r2
 res4 = RRSPACING(3.0)  ! returns 1.258291E+07
 res4 = RRSPACING(-3.0) ! returns 1.258291E+07
 r2 = 487923.3
 res8 = RRSPACING(r2)   ! returns 8.382458680573952E+015
 END