Greetings everybody!
I've hit of a problem in PHP, when it comes to dealing with very large numbers.
For example, I have this number stored in a MySQL database - 140737488355330 (bigint 25).
In PHP, I need to do some processing on this number. However, because i'm running the script on a 32bit processor, the number is larger than the maximum possible size for an integer, causing some unexpected results.
Is there any way I can get around this? Is there an alternative number type I can use which has a much greater limit than integer?
Regards,
Rich
I've hit of a problem in PHP, when it comes to dealing with very large numbers.
For example, I have this number stored in a MySQL database - 140737488355330 (bigint 25).
In PHP, I need to do some processing on this number. However, because i'm running the script on a 32bit processor, the number is larger than the maximum possible size for an integer, causing some unexpected results.
Is there any way I can get around this? Is there an alternative number type I can use which has a much greater limit than integer?
Regards,
Rich