frexp10 Function (ROM Call 0x2FB*)

AMS 1.01 or higher math.h, timath.h

float frexp10 (float x, short *exponent);

Splits floating point number into mantissa and exponent.

frexp10 calculates the mantissa m (a floating point greater than or equal to 0.1 and less than 1) and the integer value n, such that x equals m*10^n. frexp stores n in the integer that exponent points to, and returns the mantissa m.

Note: This routine is analogous to frexp in ANSI C math library, except using base ten rather than base two.


Uses: is_transfinite, _bcd_math