WooCommerce issue - Returning only integer part of sizes for products
<p>In WooCommerce, for example, I have a product with defined width = '1.75' and height = '15.75'.</p>

<p>I use the following function:</p>

<pre><code>$product = new WC_Product($id);

public function get_sizes($product) {
  $w_size = floatval($product-&gt;get_width());
  $h_size = floatval($product-&gt;get_height());

  $w_M = intval($w_size);
  $h_M = intval($h_size);
  $w_CM = $w_size - intval($w_size);
  $h_CM = $h_size - intval($h_size);

  return array($w_M, $h_M, $w_CM, $h_CM); 
}
</code></pre>

<p>But <strong><code>$product-&gt;get_width()</code></strong> and <strong><code>$product-&gt;get_height()</code></strong> returning only '1' and '15'. </p>

<p>Why woocomrce returns only integer part of sizes?</p>

<p>Thanks.</p>