diff --git a/Elinor/ClipboardTools.cs b/Elinor/ClipboardTools.cs index 5874c8b..335b3d8 100644 --- a/Elinor/ClipboardTools.cs +++ b/Elinor/ClipboardTools.cs @@ -47,7 +47,7 @@ internal static double GetSellPrice(double sell, Profile settings) } else { - result -= .01; + result -= Math.Max(Math.Pow(10, Math.Floor(Math.Log10(result / 1000))), 0.01); } return result; @@ -67,7 +67,7 @@ internal static double GetBuyPrice(double buy, Profile settings) } else { - result += .01; + result += Math.Max(Math.Pow(10, Math.Floor(Math.Log10(result / 1000))), 0.01); } return result;