Subj : Re: Any help on why? To : borland.public.cpp.borlandcpp From : waking Date : Wed Jul 07 2004 07:23 pm On Wed, 07 Jul 2004 09:32:47 -0700, Bob Gonder wrote: >float pi = 3.1415; >Looks like 400 is the mantisa Why guess? That's what the standard library functions are for: #include #include int main() { double mantissa, number; int exponent; number = 3.1415; mantissa = frexp(number, &exponent); printf("The number %f is ", number); printf("%f times two to the ", mantissa); printf("power of %d\n", exponent); return 0; } Output (16-bit DOS program, TC++ 3.0 used): The number 3.141500 is 0.785375 times two to the power of 2 -- Wayne A. King (waking@idirect.com, Wayne_A_King@compuserve.com) .