* Use AsCurrency for currencies instead of float

git-svn-id: trunk@17821 -
This commit is contained in:
joost 2011-06-24 23:25:04 +00:00
parent 18e17afc47
commit a532182917

View File

@ -610,7 +610,7 @@ begin
Str(AParams[i].AsFloat, s); Str(AParams[i].AsFloat, s);
ftCurrency: ftCurrency:
begin begin
cash:=NtoBE(round(AParams[i].AsFloat*100)); cash:=NtoBE(round(AParams[i].AsCurrency*100));
setlength(s, sizeof(cash)); setlength(s, sizeof(cash));
Move(cash, s[1], sizeof(cash)); Move(cash, s[1], sizeof(cash));
end end