Forum > General
Single/Float Format
(1/1)
xinyiman:
What if a single variable have a value type 12.43168
and I want a string that displays 12.43? Somebody can help me? Example?
Leledumbo:
--- Code: ---uses
SysUtils;
var
s: String;
begin
s := FloatToStrF(12.43168,ffFixed,2,2); // I guess the 3rd param could be ignored
--- End code ---
Navigation
[0] Message Index