Hi, what I'm doing wrong:
procedure TForm1.Button1Click(Sender: TObject);
var
a,b,c: currency;
begin
a := 1.234567890;
b := 1.234567890;
c := (a * b) * 2000;
ShowMessage(CurrToStr(c));
end;
This show a result of '3048,4743'
In Windows Calculator: '3048,31575..' (10 digits)
In MS Excel: '3048,31575' (general, no number format), '3048,32' (currency format) and 10 digits if I choose 'accounting'.
I've a difference around of 0,16.
What I'm doing wrong, I need the best precision to be calculated and displayed. There's a tutorial or something?