PHP gives incorrect results when formatting long numbers
<p>I am working with huge numbers for website purposes and I need long calculation. When I echo a long number I don't get the correct output.</p>

<p><strong>Example</strong></p>

<pre><code>// A random number
$x = 100000000000000000000000000;

$x = number_format($x);
echo "The number is: $x &lt;br&gt;";
// Result: 100,000,000,000,000,004,764,729,344 
// I'm not getting the value assigned to $x
</code></pre>