FRACTION
— Fractional part of the model representationFRACTION(X)
returns the fractional part of the model
representation of X
.
Y = FRACTION(X)
X | The type of the argument shall be a REAL .
|
X
is returned;
it is X * RADIX(X)**(-EXPONENT(X))
.
program test_fraction real :: x x = 178.1387e-4 print *, fraction(x), x * radix(x)**(-exponent(x)) end program test_fraction