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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.