 (floor(log(current weight - 1)))</p>
<p>( current weight minus ( 10 raised to the power of ( floor of (log to the base 10 of ( current weight minus 1 ) ) ) ) )</p>
<p>Starting from 1000, this generates the following series:</p>
<p>1000, 900, 800, 700, 600, 500, 400, 300, 200, 100, 90, 80, 70, 60, 50, 40, 30, 20, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1</p>
<p>The resulting quality codes are closer to the average &quot;normal&quot; usage of them (like &quot;q=0.9&quot;, &quot;q=0.8&quot; and so on), but it only works
