title: Number of output decimal places
body: <p>I made a code for calculating Woocommmerce discount...
  Sorry for the stupid question, but I can not find a solution.</p>
  
  <p>"division" outputs the "price_per_bottle" devided by "price_per_ltr".
  I can not get it to output only 2 decimal places ("12.30" as in €), because now, by default, there are many.</p>
  
  <pre><code>&lt;button id='add' type='button' onclick='ik(this.value);'  value='3'&gt;
  30% Discount &lt;span class="kalkc3" id="kalk1"&gt;&lt;?php 
  $price_per_bottle= $product-&gt;get_price();
  $price_per_ltr= 0.7; 
  $division = $price_per_bottle/ $price_per_ltr; 
  echo $division;
  ?&gt;&lt;/span&gt;&lt;/button&gt;
  </code></pre>
  
  <p>I have found the answer, but not in the mentioned post... But with trial and error:)..</p>
  
  <pre><code>&lt;?php 
  $kokstane3 = $product-&gt;get_price(); 
  $popust3 = 0.7; 
  $rezultat3 = $kokstane3 * $popust3;
  echo (round($rezultat3,2));// &lt;= HERE
  ?&gt;
  </code></pre>