Jump to content

Large Integers


Millar

Recommended Posts

I have a sum which ends up returning a float because basically it results in larger than 2 billion. I want to insert the value that is larger than 2 billion into a bigint field in a MySQL table, how can I insert it into the field because if you inser the float it simply returns 0 and if I inster it as an integer it just does the maximum of 2147483647?
Link to comment
https://forums.phpfreaks.com/topic/26217-large-integers/
Share on other sites

Yes, it does, but PHP can't handle the Number when it is in Integer form, and I need to get it into maybe an equivilent of bigint in PHP to put it into the MySQL database, I can't use a float because that will return zero when you try and insert into database.
Link to comment
https://forums.phpfreaks.com/topic/26217-large-integers/#findComment-119898
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.