phantom007 — 2013-07-12T09:59:06-04:00 — #1
I was going through the official doc of php for data types http://php.net/manual/en/language.types.php
It seems php does not support long data type. So is double the only datatype in php that supports the highest rage of value?
kylewolfe — 2013-07-12T10:56:38-04:00 — #2
A better page to look at might be here: http://php.net/manual/en/language.types.integer.php
The big thing to remember is that PHP doesnt handle these large numbers well, especially when it comes to comparison. See http://www.php.net/manual/en/book.bc.php for manipulating large numbers.
phantom007 — 2013-07-13T04:18:36-04:00 — #3
So if php does not handle large numbers, what is the work around for this?
kylewolfe — 2013-07-15T09:44:37-04:00 — #4
I suppose I didn't word it correctly. Understand that PHP is built on top of C. The standard operators may not be able to handle large integers, but there are libraries that link directly to C extensions that can.
The link to the library I posted is your work around.