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