|
@@ -17,6 +17,7 @@ type
|
|
|
function PriceRoundTo(AValue: Double): Double;
|
|
|
function TotalPriceRoundTo(AValue: Double): Double;
|
|
|
function CommonRoundTo(AValue: Double; ADigit: Integer; RoundMode: TRoundMode = rmNearest): Double;
|
|
|
+ function CommonCalcRoundTo(AValue: Double): Double;
|
|
|
|
|
|
{Interface Control}
|
|
|
procedure AlignControl(AControl, AParent: TWinControl; AAlign: TAlign);
|
|
@@ -238,6 +239,11 @@ begin
|
|
|
Result := InnerRoundTo(X, ADigit, RoundMode);
|
|
|
end;
|
|
|
|
|
|
+function CommonCalcRoundTo(AValue: Double): Double;
|
|
|
+begin
|
|
|
+ Result := CommonRoundTo(AValue, 12);
|
|
|
+end;
|
|
|
+
|
|
|
{Interface Control}
|
|
|
procedure AlignControl(AControl, AParent: TWinControl; AAlign: TAlign);
|
|
|
begin
|