Prueba con el comando FloatToStrF
Es un comando practico que permite sobrecarga y te pasa el resultado a donde quieras, variable o al edit.
Aqui dejo una ayuda.
The FloatToStrF function converts a floating point number Value into a displayable string, with great control over the formatting via the Format, Precision, and Digits values.
The Value type may be any of the floating point types.
The Format parameter is defined by the TFloatFormat (SysUtils) type :
ffCurrency eg : ?2,345.60
ffExponent eg : 2.3456E+04
ffFixed eg : 2345.60
ffGeneral eg : 2345.6
ffNumber eg : 2,345.6
|