spacing

Date:

02-06-2023

NAME

SPACING - Returns the absolute spacing of real model numbers near the argument value

SYNOPSIS

SPACING ([X=]x)

STANDARDS

Fortran

DESCRIPTION

The SPACING intrinsic function returns the absolute spacing of real model numbers near the argument value. It accepts the following argument:

x

Must be of type REAL

SPACING is an elemental function. The name of this intrinsic cannot be passed as an argument.

RETURN VALUES

The result type and type parameter are the same as x. The result has the value be-p, where b, e, and p are as defined in the real number model, provided this result is within range. If not, the result is the same as that of TINY (x). For more information on the real number model, see the models(3i) man page.