Developer Guide and Reference

ID 767251
Date 10/31/2024
Public
Document Table of Contents

RRSPACING

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

result = RRSPACING (x)

x

(Input) Must be of type real.

Results

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

Example

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

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