List Info

Thread: floattostr




floattostr
user name
2006-07-04 09:06:03

Hello

I would like to convert a double to a string where the originel 'format' should be used:

A double having the value 0.00000099 should convert to '0.00000099' and not '9.9E-5' .

The original double value could be any value, therefor using the floattostrF (where I have to define the amount of char before and after the decimal point) is maybe not the right choice?
http://www.delphibasics.co.uk/RTL.asp?Name=FloatToStrF

Any idea on how to do this in a general way that will work for all values?

Regards

andries


---------------------------------
Sneak preview the all-new Yahoo.com. It's not radically different. Just radically better.

[Non-text portions of this message have been removed]

__._,_.___
.

__,_._,___
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )