Elemental Intrinsic Function (Generic): Returns the fractional part of the model representation of the argument value.
Syntax
Results:
The result type is the same as x. The result has the value x 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.
Compatibility
CONSOLE STANDARD GRAPHICS QUICKWIN GRAPHICS WINDOWS DLL LIB
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