Intel® Fortran Compiler 16.0 User and Reference Guide
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. |
The result type and kind is 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.
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