Re: Floating point formatting


2004-06-01 08:29:25 AM
delphi276
"somebody" wrote
Quote
I know this is somewhat OT but I am not sure where to ask,
b.p.delphi.language.delphi.general would be a good place.
Quote
Is there a "nice" way of formatting a floating point value with the
least
number of characters given a particular number of significant digits,
Have you checked "Floating point conversion routines" in Help yet?
I would look carefully at the FloatToStrF function and at using
the %g feature of Format() function.
Regards, JohnH