Jump to content
MakeWebGames

User Stats


Jameoo

Recommended Posts

Hi Im Trying To Rais The Max On Stats i use bigint 249 i cant use decimal 249,2 coz it dnt work what is the biggest one you can choose from to get the highest amount

EDITED

with bigint 249 its only going to

9,223,372,036,854,775,808

Link to comment
Share on other sites

Guest Anonymous

Re: User Stats

9,223,372,036,854,775,807 is 2^63-1 ...

See http://dev.mysql.com/doc/refman/5.1/en/ ... types.html

Quoting from the manual ...

The maximum number of digits for DECIMAL or NUMERIC is 65, but the actual range for a given DECIMAL or NUMERIC column can be constrained by the precision or scale for a given column

So you will have find a different solution ... Try using a DOUBLE...

Again (from the manual)

A normal-size (double-precision) floating-point number. Allowable values are -1.7976931348623157E+308 to -2.2250738585072014E-308, 0, and 2.2250738585072014E-308 to 1.7976931348623157E+308. These are the theoretical limits, based on the IEEE standard. The actual range might be slightly smaller depending on your hardware or operating system.

Link to comment
Share on other sites

Re: User Stats

Hummm I Tryed Decimal 69 tha was max how do i make it more lol ??

the maximum on decimal 69 is....

99,999,999,999,999,999,209,038,626,283,633,850,822,756,121,694,230,455,365,568,299,008

 

GROOVY AY

Link to comment
Share on other sites

Guest Anonymous

Re: User Stats

 

Hummm I Tryed Decimal 69 tha was max how do i make it more lol ??

As I said - use a DOUBLE

The maximum (signed) is roughly ...

222,507,385,850,720,140,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000

 

But of course you will lose a lot of accuracy ...

Link to comment
Share on other sites

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.   Paste as plain text instead

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