title: check if a number is int or float
body: <p>In perl, I want to check if the given variable holds a floating point number of not. To check this I am using,</p>
  
  <pre><code>my $Var = 0.02 # Floating point number
  
  if (int($Var) != $Var) {
  
     # floating point number
  }
  </code></pre>
  
  <p>But the above code will not work for 0.0,</p>
  
  <p>How can I achieve this?</p>