Raised This Month: $32 Target: $400
 8% 

large numbers, easy comma formula?


Post New Thread Reply   
 
Thread Tools Display Modes
Seta00
The Seta00 user has crashed.
Join Date: Jan 2010
Location: Berlin
Old 06-02-2010 , 20:38   Re: large numbers, easy comma formula?
Reply With Quote #11

Quote:
Originally Posted by HLM View Post
This will work, my main question is answered, but I do have an interest in numbers larger than the int32 base, or whatever it is, I have had 3 or 4 resets due to people saying their points have reset down into the extremely low negatives, for now I have set a cap of 1 billion on the points, but if I can get a nearly infinite base, that would be awesome (why I was presuming calling all numbers a string might help me with this)

case number:
"1": { number = "2" }

etc. ofcourse, I would also need to format it digit by digit too, which would eventually become quite difficult.

does that sum up where im at?
There are better patterns for this feature you want.
Quote:
Originally Posted by Seta00 View Post
I can bind some bignum library to Pawn with a small module.
Seta00 is offline
HLM
Senior Member
Join Date: Apr 2008
Location: C:\WINDOWS\System32
Old 06-02-2010 , 20:42   Re: large numbers, easy comma formula?
Reply With Quote #12

I would greatly appreciate that, for some reason people like knowing they have this many points, originally the points were used to buy more health/armor more grenades (TFC) and weapons, but everyone neglected that and they just want to see who can get the most, but ofcourse, I dont have a "top10" or anything, so they cant really compare anyone that isnt on the server
__________________
+|- KARMA Respectively

HLM is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 06-02-2010 , 21:09   Re: large numbers, easy comma formula?
Reply With Quote #13

So you only need a method to increment a number once it reaches the max int 32 value?
__________________
Bugsy is offline
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 06-02-2010 , 23:41   Re: large numbers, easy comma formula?
Reply With Quote #14

You can either use string math or a much easier alternative would be to use floats.
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-03-2010 , 00:08   Re: large numbers, easy comma formula?
Reply With Quote #15

@Seta, my bad, apparently I'm the one who should do the re-reading lol.
__________________
fysiks is offline
Seta00
The Seta00 user has crashed.
Join Date: Jan 2010
Location: Berlin
Old 06-03-2010 , 14:37   Re: large numbers, easy comma formula?
Reply With Quote #16

Quote:
Originally Posted by HLM View Post
I would greatly appreciate that, for some reason people like knowing they have this many points, originally the points were used to buy more health/armor more grenades (TFC) and weapons, but everyone neglected that and they just want to see who can get the most, but ofcourse, I dont have a "top10" or anything, so they cant really compare anyone that isnt on the server
I'm working on something very hawt.
Seta00 is offline
HLM
Senior Member
Join Date: Apr 2008
Location: C:\WINDOWS\System32
Old 06-03-2010 , 15:14   Re: large numbers, easy comma formula?
Reply With Quote #17

sounds great, cant to see what your doing!
__________________
+|- KARMA Respectively

HLM is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 06-03-2010 , 16:34   Re: large numbers, easy comma formula?
Reply With Quote #18

Quote:
Originally Posted by Emp` View Post
You can either use string math or a much easier alternative would be to use floats.
Just use one of these.
__________________
Bugsy is offline
Seta00
The Seta00 user has crashed.
Join Date: Jan 2010
Location: Berlin
Old 06-03-2010 , 20:46   Re: large numbers, easy comma formula?
Reply With Quote #19

Quote:
Originally Posted by Bugsy View Post
Just use one of these.
It's not that simple... Floats aren't an option, and string math isn't easy...

http://www.google.com/search?q=bignum
Seta00 is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 06-03-2010 , 21:59   Re: large numbers, easy comma formula?
Reply With Quote #20

There is string add function in my VAC ban status plugin. What math operations are needed other then adding?
__________________
Bugsy is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 13:10.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode