FRACTION(X)

Purpose

Returns the fractional part of the model representation of 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

The result is:

X * (2.0-EXPONENT(X))

Examples

FRACTION(10.2) =2-4 * 10.2 approximately equal to 0.6375