I have installed PHP 5.5 on my laptop, who's running Windows. I'm accessing Smartsheet API, and I supposed to get a column id a number with 18 digits(or sometimes 17). But I get a scientific number:
1.5441916385627E+15
, not 1544191638562692
I ran the script, in a Ubuntu server environment, and I see 1544191638562692. The same, a ran in a OS X Maverick environment, and it's the same the integer format.
I was searching for this matter, and seems to be the precision.
If I'm setting in php, the precision 14 for the OS X Maverick environment like this:
<?php
ini_set('precision', 14);
echo (float)$col->id;
// 1.5441916385627E+15
?>
I get also the scientific number.
Can anybody help me with an idea?