Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Samples/Bernoulli/BigBernoulli.dpr
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ begin
end;
finally
lines.Free;
check.Free
check.Free;
end;

except
Expand Down
3 changes: 2 additions & 1 deletion Source/Velthuis.BigDecimals.pas
Original file line number Diff line number Diff line change
Expand Up @@ -1135,11 +1135,12 @@ class procedure BigDecimal.InPlaceRemoveTrailingZeros(var Value: BigDecimal; Tar
if (LScale > TargetScale) and (LValue >= BigInteger.Ten) then
begin
BigInteger.DivMod(LValue, BigInteger.Ten, LQuotient, LRemainder);

if LRemainder.IsZero then
begin
LValue := LQuotient;
Dec(LScale);
end
end;
end;

LValue.Sign := LSign;
Expand Down