I want to display a numeric value on an edit box, but since my variables are DOUBLE, so is my result, so the text displayed on the edit box is 15 digits long on the right side of the decimal point. I only need 4 decimal digits not 15 for display purposes. I know there are a few formatting functions but I don't know exactly which one and the correct syntax.
Eg.:
var value1:double;
Value1:=102.50*1.50;
edit1:=floattostr(value1);
so I want to display 153.7500 in the edit box
...NOT 153.751236475895969
THANKS
ROB.
Eg.:
var value1:double;
Value1:=102.50*1.50;
edit1:=floattostr(value1);
so I want to display 153.7500 in the edit box
...NOT 153.751236475895969
THANKS
ROB.