title: Implicit conversion from float (number) to int loses precision
body: <p>i used to use this formula before php 8.1</p>
  <pre><code>&lt;?php
  $number = 0;
  echo log10(abs($number)) / 3 | 0;
  
  echo PHP_EOL;
  
  $number = 100;
  echo log10(abs($number)) / 3 | 0;
  
  echo PHP_EOL;
      
  $number = 1100;
  echo log10(abs($number)) / 3 | 0;
  
  echo PHP_EOL;
      
  $number = 10000000;
  echo log10(abs($number)) / 3 | 0;
  ?&gt;
  </code></pre>
  <p>and it worked fine but now i keep getting these errors from them after upgrading</p>
  <pre><code>Deprecated: Implicit conversion from float -INF to int loses precision
  
  Deprecated: Implicit conversion from float 0.6666666666666666 to int loses precision
  
  Deprecated: Implicit conversion from float 1.0137975617194084 to int loses precision
  
  Deprecated: Implicit conversion from float 2.3333333333333335 to int loses precision
  </code></pre>
  <p>and i can not find or understand why it is happening now from the 8.1 docs</p>