XL Fortran for AIX 8.1

Language Reference


FRACTION(X)

Returns the fractional part of the model representation of the argument value.

X
must be of type real.

Class

Elemental function

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 &approx. 0.6375

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


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]