Use FplBase10Info(). There will be three cases: Adding 0s and a '.' to the
left of the mantissa, Adding a '.' and 0s to the right of the mantissa and
just embedding a '.' somewhere in the mantissa. Don't attempt to strip 0's
in the mantissa returned by FplBase10Info. The FloatMgr is giving you a
result with the proper significance. It all becomes tricky when you try to
limit what you can display (i.e. you don't want to display 1234e99 and
probably not even 1234567e14 in decimal form, but you may want to show
1234567e-14).
- Dan
> -----Original Message-----
> From: Dave Lippincott [mailto:[EMAIL PROTECTED]]
> Sent: Friday, December 17, 1999 10:00 AM
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: Re: Convert exponential F to Display F
>
>
> How about not using FlpFToA and convert the number yourself.
> You could use two integers to represent the number and then
> use standard
> integer formatting for output. Just convert the float to an integer
> representing the part of the number above 0 plus an integer
> representing the
> part less than 0.
>
> Search www.egroups.com for tons of previously posted sample
> code on this
> topic.
>
> -----Original Message-----
> From: Tim Hewitt <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
> Date: Thursday, December 16, 1999 6:41 PM
> Subject: Convert exponential F to Display F
>
>
> >I've written some really _ugly_ code to convert a string
> from exponential
> format
> >as returned by the Float Manager FlpFToA call to a display
> format suitable
> for humans.
> >
> >I must admit my string processing skills in C are not good.
> Would anyone
> care
> >to take a stab at a clean way to convert from
> >
> > [-]x.yyyyyyyye[-]zz
> >
> >to
> >
> > [-]x.y
> >
> >Thanks,
> >
> >-Tim
> >
>
>
>