|
@@ -234,7 +234,10 @@ begin
|
|
|
end;
|
|
|
P := @X;
|
|
|
CopyMemory(P, @Buf[0], SizeOf(X));
|
|
|
- Result := InnerRoundTo(X, ADigit, RoundMode);
|
|
|
+ if (ADigit <= -6) and (ADigit < GetTrueDigit(AValue)) then
|
|
|
+ Result := AValue
|
|
|
+ else
|
|
|
+ Result := InnerRoundTo(X, ADigit, RoundMode);
|
|
|
end;
|
|
|
|
|
|
function CommonCalcRoundTo(AValue: Double): Double;
|