Setting precision in PHP -
i have installed php 5.5 on laptop, who's running windows. i'm accessing smartsheet api, , supposed column id number 18 digits(or 17). scientific number:
1.5441916385627e+15, not 1544191638562692
i ran script, in ubuntu server environment, , see 1544191638562692. same, ran in os x maverick environment, , it's same integer format.
i searching matter, , seems precision.
if i'm setting in php, precision 14 os x maverick environment this:
echo (float)$col->id; //1.5441916385627e+15
i scientific number.
can me idea?
as has been mentioned in comments, sounds issue running 32-bit php. smartsheet provide sample php code started working api. in samples, documentation recommends treat ids strings in 32-bit php:
https://github.com/smartsheet-platform/samples/tree/master/php/1-hellosmartsheet#dependencies
Comments
Post a Comment