Elemental Intrinsic Function (Generic): Returns the fractional part of the model representation of the argument value.
Syntax
result = FRACTION (x)
x
(Input) Must be of type real.
Results
The result type is the same as x. The result has the value x * be. Parameters b and e are defined in Model for Real Data. If x has the value zero, the result has the value zero.
See Also
DIGITS, RADIX, EXPONENT, Data Representation Models
Examples
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