title: remove beyond the 2nd decimal in product weight woocomerce
body: <p>trying to remove numbers after the 2nd decimal on output of this code! Any ideas?</p>
  <pre><code>add_filter( 'woocommerce_product_get_weight', 'volumetric_calculations', 10, 2 );
      function volumetric_calculations( $weight, $product ) {
          $dim_weight = $product-&gt;get_length() * $product-&gt;get_width() * $product-&gt;get_height() / 5000;
          return $dim_weight &gt; $weight ? $dim_weight : $weight;
          
      }
  </code></pre>