title: Why does 2e3 return 2000? Isn't 2 to the 3rd power equal to 8?
body: <p>This code:  </p>
  
  <pre><code>$g = 2e3;
  echo $g;
  echo &lt;br&gt;;
  echo "var_dump g gives:&lt;br&gt;";
  </code></pre>
  
  <p>Displays:  </p>
  
  <pre><code>2000
  float(2000)
  </code></pre>
  
  <p>I don't understand why it wouldn't display "8" and "float(8)"? Isn't 2 to the 3rd power equal to 8 ??</p>
  
  <p>I tried looking for this question on this website already. Any help would be greatly appreciated. I did figure out that for 2e2 it displays 200. So it sounds like it just adds that many zeros to the end of the number instead of finding the 3rd power of 2. When I search for how to write exponential in php, the answers I've found said to use 'e' or 'E', but that doesn't seem to work or I've forgotten basic math. I'm sure somebody on here has a very simple answer for me.</p>
  
  <p>Ok so why does <code>$g = 2^3;</code> give me 1?  How can I write 2 to the 3rd power in php?</p>