|
On 32-bit Windows systems:
Double type: Representation range: ±5.0 * 10^-324 ~ 1.7 * 10^308 effective digits: 15~16 digits. So, change your formatFloat like this, try:
var
a: double;
s:string;
begin
a := 8.07;
s := formatfloat('#.##############',a);//Note that the decimal point is 15#
edit1.text := s ;//Display 8.07
s := format('%1.15f',[a]);
edit2.text := s; //Display 8.070000000000000 It is recommended to use format()
end;
Use format() conversion, even if you find the adoconnection problem, it no longer exists.
Your problem, the first is that your precision is beyond the scope of double. |
|