Intel® Fortran Compiler 16.0 User and Reference Guide
Elemental Intrinsic Function (Generic): Returns the fractional part of the model representation of the argument value.
result = FRACTION (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. Parameters b and e are defined in Model for Real Data. If x has the value zero, the result has the value zero.
If 3.0 is a REAL(4) value, FRACTION (3.0) has the value 0.75.
The following shows another example:
REAL result result = FRACTION(3.0) ! returns 0.75 result = FRACTION(1024.0) ! returns 0.5