My number seems to be truncating, is Extended the data type with the greatest range? Int he following code:
procedure TForm1.Button2Click(Sender: TObject);
var a : extended;
begin
a := 1.123456789123456789;
showmessage(floattostr(a));
end;
The Message shows as 1.12345678912346 seems it only deals with 16 digits. Can I increase this? I really need 20, or more digits.
Chris.
procedure TForm1.Button2Click(Sender: TObject);
var a : extended;
begin
a := 1.123456789123456789;
showmessage(floattostr(a));
end;
The Message shows as 1.12345678912346 seems it only deals with 16 digits. Can I increase this? I really need 20, or more digits.
Chris.