mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-23 03:29:41 +02:00
* Use AsCurrency for currencies instead of float
git-svn-id: trunk@17821 -
This commit is contained in:
parent
18e17afc47
commit
a532182917
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user