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.

+-------------------------------IBM Extension--------------------------------+

Result Value

The result is:

X * (2.0-EXPONENT(X))

+----------------------------End of IBM Extension----------------------------+

+-------------------------------IBM Extension--------------------------------+

Examples

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

+----------------------------End of IBM Extension----------------------------+

IBM Copyright 2003