mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-29 19:41:15 +02:00
* patch by Rika: Implement TCurrencyHelper.Ceil/Floor, resolves #40134
This commit is contained in:
parent
0e449a5f06
commit
08b612f218
@ -1591,12 +1591,16 @@ end;
|
||||
|
||||
function TCurrencyHelper.Ceil: Int64;
|
||||
begin
|
||||
{$warning TCurrencyHelper.Ceil unimplemented!}
|
||||
Result:=System.Trunc(Self);
|
||||
if Currency(Result)<Self then
|
||||
Result:=Result+1;
|
||||
end;
|
||||
|
||||
function TCurrencyHelper.Floor: Int64;
|
||||
begin
|
||||
{$warning TCurrencyHelper.Floor unimplemented!}
|
||||
Result:=System.Trunc(Self);
|
||||
if Currency(Result)>Self then
|
||||
Result:=Result-1;
|
||||
end;
|
||||
|
||||
function TCurrencyHelper.Frac: Currency;
|
||||
|
Loading…
Reference in New Issue
Block a user