Extracts the mantissa and exponent from a decimal floating-point number.
The frexpd32, frexpd64, and frexpd128 subroutines divide a decimal floating-point number into a mantissa and an integral power of 10. The integer exponent is stored in the int object pointed to by the exp parameter.
Item | Description |
---|---|
num | Specifies the decimal floating-point number to be divided into a mantissa and an integral power of 10. |
exp | Points to where the integer exponent is stored. |
For finite arguments, the frexpd32, frexpd64, and frexpd128 subroutines return the mantissa value in the x parameter. Therefore, the num parameter equals the x parameter times 10 raised to the power exp parameter.
If num is NaN, a NaN is returned, and the value of the *exp is not specified.
If num is ±0, ±0 is returned, and the value of the *exp is 0.
If num is ±Inf, num is returned, and the value of the *exp is not specified.