This routine won't give you more than 8 digits, since the mantissa parameter
is a 32 bit integer and cannot hold greater numbers. You will have to write
some code.

An idea how you can do this is to use FlpBase10Info to get the exponent and
the upper 8 digits of the mantissa. Then you calculate the number z =
mantissa * (10**exponent) which is the original number rounded to 8 digits.
Then subtract z from the original number and feed the result again into
FlpBase10Info to get the next 8 digits.

For example:
x = 3.14159265358979324;
FlpBase10Info -> Mantissa = 31415926, exp = -7
z = 31415926 * 10**-7 = 3.1415926
x-z = 3.14159265358979324 - 3.1415926 = 0.00000005358979324
FlpBase10Info -> Mantissa = 53589793, exp = -15

You need to take care to insert leading or trailing zeroes correctly into
the resulting string and to place the decimal period at the correct place
for all kind of numbers.

Andreas





-- 
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/

Reply via email to