title: Perl floating point number usage confusion
body: <p>While using scalar values in perl, I am not able to accomplish the desired results. Need your help in figuring where I am going wrong..</p>
  
  <p>Say I want to loop 9 times and print 0.1 to 0.9</p>
  
  <p>I declared variable <code>$i</code> and using it in for loop as well as inside the loop. </p>
  
  <pre><code>for($i = 1; $i &lt; 10; $i++) 
  {
      $b = $ie-01; # (This where I go wrong, I am not sure If I am following correct
                   # syntax here, Because I see -1 getting printed instead of $i value
                   # which is incremented on each loop)
      print "The value now is: $b\n";
  }
  </code></pre>
  
  <p>I do know of different ways to get the desired result but I wanna know how to use exponent to get the desired output. . . . .</p>
  
  <p>Why <code>$i</code> is treated as <code>0</code> when used in conjunction with <code>e</code>?</p>