title: Timestamps E+12? (PHP, SQL)
body: <p>I'm trying to figure out what causes the following, but I just DON'T get it..</p>
  
  <p>I want to update a timestamp in the database. So, I'll do this:</p>
  
  <p><code>$time = round(microtime(true) * 1000);</code></p>
  
  <p><code>UPDATE table SET time = '".$time."'</code></p>
  
  <p>This worked perfectly! I had a timestamp stored in the database like this:</p>
  
  <p><code>1497099703644</code></p>
  
  <p>I left this personal project behind because I had a more important paid project But since a few days I'm back on this project again. And immediately I noticed that the timestamps were stored different. Like this:</p>
  
  <p><code>1.50732853038E+12</code></p>
  
  <p>Same code, different output..
  I noticed this because some other code stopped working because of this.
  But I quickly noticed that if I do <code>+0</code>:</p>
  
  <p><code>$time = round(microtime(true) * 1000);</code></p>
  
  <p><code>UPDATE table SET time = '".$time."' + 0</code></p>
  
  <p>the timestamps will be stored normal like:</p>
  
  <p><code>1507330499030</code></p>
  
  <p>Is there anyone that can explain how this happens? I don't know why, but I think it happens since the timestamps starts with 15 instead of 14. Could this be true?</p>
  
  <p>-</p>
  
  <p><strong>EDIT:</strong> 
  I just noticed the same problem occurs when I just echo </p>
  
  <p><code>echo round(microtime(true) * 1000);</code></p>