* 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

@ -608,9 +608,9 @@ begin
s := FormatDateTime('hh:nn:ss', AParams[i].AsDateTime);
ftFloat, ftBCD:
Str(AParams[i].AsFloat, s);
ftCurrency:
ftCurrency:
begin
cash:=NtoBE(round(AParams[i].AsFloat*100));
cash:=NtoBE(round(AParams[i].AsCurrency*100));
setlength(s, sizeof(cash));
Move(cash, s[1], sizeof(cash));
end