Jump to content

Storing very large numbers need help


cdoyle

Recommended Posts

Hello,

this has been a topic that has confused me for awhile, and not sure how to get around it.

 

I have an RPG and the players have bank accounts,  but after several years of game play.   Some players are running into issues where we just can't store large numbers in the database anymore.

http://www.caraudiocentral.net/CAC_Mafia_Life

 

I currently have the field as BIGINT(20).

 

I've read that one solution is to use a VARCHAR,  but you can't do any math calculations with this.   So this isn't a solution for me,  since this is game cash,  and it has to be calulated everytime a transaction is done.

 

What are my options with these very large numbers?

 

Thanks

Chris

Link to comment
Share on other sites

A signed BIGINT at allows values up to

nine quintillion, two hundred twenty-three quadrillion, three hundred seventy-two trillion, thirty-six billion, eight hundred fifty-four million, seven hundred seventy-five thousand, eight hundred seven

Or 9,223,372,036,854,775,807.

 

If that's not enough for your currency or whatever then you really need to change the currency. Not even the Zimbabwean dollar is that bad.

Edited by requinix
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.