View previous topic :: View next topic |
Author |
Message |
teeigeryuh Master Cheater
Reputation: 25
Joined: 13 Oct 2008 Posts: 261 Location: The netherlands
|
Posted: Thu Oct 18, 2012 6:22 am Post subject: c++ int size and shit |
|
|
if the max int size in c++ is like 2.1b and the max 32 bit int is 4.1b, how come window's calculator can bypas this limit and like, allows you to multiply 1 trillion times 5 for example.
_________________
ლ(╹◡╹ლ) |
|
Back to top |
|
 |
br0l0ck Cheater
Reputation: 63
Joined: 15 Aug 2007 Posts: 38
|
Posted: Thu Oct 18, 2012 6:33 am Post subject: |
|
|
|
|
Back to top |
|
 |
Aniblaze Grandmaster Cheater Supreme
Reputation: 138
Joined: 23 Apr 2006 Posts: 1757 Location: The Netherlands
|
Posted: Thu Oct 18, 2012 6:38 am Post subject: Re: c++ int size and shit |
|
|
teeigeryuh wrote: | if the max int size in c++ is like 2.1b and the max 32 bit int is 4.1b, how come window's calculator can bypas this limit and like, allows you to multiply 1 trillion times 5 for example. |
You can use other primitive types you know...
EDIT: I googled it for you: http://www.clickteam.com/epicenter/ubbthreads.php?ubb=showflat&Number=186627
|
|
Back to top |
|
 |
teeigeryuh Master Cheater
Reputation: 25
Joined: 13 Oct 2008 Posts: 261 Location: The netherlands
|
Posted: Thu Oct 18, 2012 6:42 am Post subject: Re: c++ int size and shit |
|
|
Aniblaze wrote: | teeigeryuh wrote: | if the max int size in c++ is like 2.1b and the max 32 bit int is 4.1b, how come window's calculator can bypas this limit and like, allows you to multiply 1 trillion times 5 for example. |
You can use other primitive types you know... |
So far I've only found BigInteger thanks to google.
Any other alternatives?
Even then, how can a processor accomplish this anyways?
_________________
ლ(╹◡╹ლ) |
|
Back to top |
|
 |
1929394839292057839194958 Grandmaster Cheater Supreme
Reputation: 130
Joined: 22 Dec 2006 Posts: 1509
|
|
Back to top |
|
 |
teeigeryuh Master Cheater
Reputation: 25
Joined: 13 Oct 2008 Posts: 261 Location: The netherlands
|
Posted: Thu Oct 18, 2012 7:08 am Post subject: |
|
|
konr wrote: | http://stackoverflow.com/questions/3595247/which-data-type-to-use-for-a-very-large-number-in-c | scf4dsfsf
_________________
ლ(╹◡╹ლ) |
|
Back to top |
|
 |
Slugsnack Grandmaster Cheater Supreme
Reputation: 71
Joined: 24 Jan 2007 Posts: 1857
|
Posted: Thu Oct 18, 2012 9:44 am Post subject: |
|
|
Implemented with big integer. Behind the scenes probably BCD
|
|
Back to top |
|
 |
|