YOUREWINNER.COM
 
   

[BUG] Can't sell items for more than 2147483647 rigcoins
 
steev
#1 22-05-2012, 00:15:02 AM
2147483647 is the maximum value of a 32-Bit signed integer.

please fix

use float or unsigned int or double or whatever


My coffee mug


bjorno
#2 22-05-2012, 01:01:07 AM
yeah, wtf



bjorno780 http://img444.imageshack.us/img444/2969/freesorfzl1.gif
ZMannZilla
#3 22-05-2012, 01:58:52 AM
2.1 BILLION RIGCOINS





EPIC BATTLE - ZMANN VS. DISSIDENT (https://www.youtube.com/watch?v=FND4FJe3R9M)
Z. Mann Zilla
Dissident
#4 22-05-2012, 02:03:52 AM
the real question is, do you deserve to make 2147483648 rigcoins in a single transaction?  we wouldn't want to create instability in the marketplace with dubious trades of this magnitude would we?



<a href="http://www.youtube.com/watch?v=5PDuqk_DSMw" target="_blank">http://www.youtube.com/watch?v=5PDuqk_DSMw</a>
Dissident International Anti-Furry Organization
JC VON BASTARD
#5 22-05-2012, 09:27:27 AM
I don't think anyone has nearly that many rigcoins anyway!!!!!!!!!!




ZMannZilla
#6 22-05-2012, 10:31:53 AM
Also, if that is the highest number possible, you wouldn't be able to receive all those Rigcoins unless you had 0 Rigcoins in your account




EPIC BATTLE - ZMANN VS. DISSIDENT (https://www.youtube.com/watch?v=FND4FJe3R9M)
Z. Mann Zilla
Thunder
#7 24-05-2012, 22:50:01 PM
I say make a it an unsigned long long int, with a maximum value of 18446744073709551615, or 18.4 quintillion.


yourethunder
steev
#8 25-05-2012, 00:09:20 AM
I say make a it an unsigned long long int, with a maximum value of 18446744073709551615, or 18.4 quintillion.

That should be just enough


My coffee mug


bjorno
#9 25-05-2012, 00:13:33 AM
1 nibble



bjorno780 http://img444.imageshack.us/img444/2969/freesorfzl1.gif
Thunder
#10 25-05-2012, 04:35:59 AM
1 googol


yourethunder
#11 25-05-2012, 15:03:54 PM
I don't think those are valid integer types.



scuzzyneighbour
Thunder
#12 25-05-2012, 15:31:59 PM
I don't think those are valid integer types.

What, ulonglong? It's in the GCC spec. Nibble and googol are just numbers.


yourethunder
WINNEROverTheRoad
#13 26-05-2012, 05:38:30 AM
- Last Edit: 26-05-2012, 05:42:09 AM
Use a  :stamp: 64-bit signed integer (long integer) instead.

Values go up to 9223372036854775807 with a 64-bit signed integer.

Don't use 64-bit unsigned, things go crazy if you go below zero.

Also, don't use a 128-bit signed. It is impossible to go over 9223372036854775807 Rigcoins.


Why race off the road when you can race over it?
#14 26-05-2012, 13:30:15 PM
What if I want to sell stuff for negative rigcoins?



scuzzyneighbour
Dissident
#15 26-05-2012, 14:17:43 PM
step 1: send intended recipient item
step 2: send money to recipient

voila



<a href="http://www.youtube.com/watch?v=5PDuqk_DSMw" target="_blank">http://www.youtube.com/watch?v=5PDuqk_DSMw</a>
Dissident International Anti-Furry Organization
0 Members and 1 Guest are viewing this topic.