title: How to use sprintf in Perl to get a float variable upto 2 decimal places without being rounded off
body: <p>Consider:</p>
  
  <pre><code>my $var = 37.43745;
  my $res = sprintf("%.2f",$var);
  print $res;
  </code></pre>
  
  <p>The above code will give the output as 37.44. But I want output to be 37.43 only. How can I get it using sprintf in a Perl script?</p>