How to handle the big int facebook uid returned by FQL?

前端 未结 3 985
执念已碎
执念已碎 2020-12-29 00:54

I\'ve a problem in handling the big userid\'s of facebook and properly storing them into my database..

As the fql.query REST api is going to be deprecated ,I\'m usin

3条回答
  •  悲哀的现实
    2020-12-29 01:17

    If youre using php (http://php.net/manual/en/function.sprintf.php):

    printf("%14.0f", 1.00000145202E+14);
    

    outputs:

    100000145202000
    

    Javascript:

    parseFloat('1.00000145202E+14')
    

提交回复
热议问题