The explanation Hbomb gave is also not entirely correct, in order to get the two's complement for a number you don't just need to flip all the bits, you also need to add 1 at the end
@@sunbleachedangelA signed 32-bit integer is in the range -2147483648 to 2147483647 and an unsigned 32-bit integer is in the range 0 to 4294967295, meaning this is in fact a signed integer as already said
I just realized my original comment said that btd 6's pc money limit was 9,223,372,036,854,775,807, but said that only some of them are like that, and others are 2,147,483,647. I think there is a 64-bit version of the game with that first number, and the 32-bit version with the second.
9,22 Quintillion money would be too insane for the game to handle though. That ludicrous amount would probably break the game even more than the 32-Bit integer limit 😂🤔
But using 64 bit version of the game doesnt mean that every single variable is 64 bit. Declared variables do take memory and require more complicated computations, even tho if the number itself its not big enough. Sure this wouldnt probably break the game, but BTD6 is already hella unoptimised game, so i dont think that using cash as 64 bit int is reasonable, especially when in normal runs you would never break through this barrier
UA-cam broke my notifications for this, so I will just say a few things 1. I wasn't sure if the 64-bit version would increase the limit or not, and it MIGHT do it, but I don't have the game on pc to check 2. The game storing the number as 64-bit probably won't affect the frame rate that much if it won't need it in regular use, and only allocate it when it gets close to surpassing the 32-bit limit (I don't do any programming so if there is a programmer that can fact check this, please tell me what the correct thing you can do is) 3. The guy here who said that it can go to something in the centillions or to infinite, that is only in modding and not in the base game
I had assumed the game would count money as a floating point number rather than an int, considering stuff like fractions of money from late round pops or Skimming in Half Cash. Surprised to see they actually use a 32-bit signed integer instead.
7:25 , i tried this myself with mods and found out that if you push the paragon sloder backwards (pretty sure , it happend to me in game) il lets you put the negative amount, and basically guarantees a degree 100 paragon
I get that content creators don’t like using double money but if we’re just trying to see the maximum I don’t understand why not. Only really helps start the exponential farming a round or two earlier
another way to think about two's compliment is that the most significant bit, instead of representing 2^31 like normal, represents -2^31 making 10...0 represent 1×-2^31 + 0×2^30 + ... + 0×2^0 ≈ -2×10^9
1:08 what you described is the representation of negative numbers using sign bits. Integers in programming use so called two complements, where the most significant bit (first on left) is turned negative (in case of int32: from 2^32 to -(2^32)). The reason for this it that addition with two compliment numbers works out of the box like it would with only positive numbers, while you need much more complicated logic for sign bits. Sign bits also waste some space because you have both 0 and -0
Interesting video. Also love the 'Cult of the Lamb'-Music :D Maybe as a tipp for such videos: go to options then 'accessibility' and scale the FX all the way down. That way it won't melt your computer (or your eyes) and won't slow down as much.
It's so strange that the money doesn't keep increasing from the negatives. You'd think gaining more money would increase the value of the lower bits, and that would make the number less negative, and yet it stays identical
Correction: That starting explanation was of signed integers. Unsigned integers swap out the first bit for another magnitude bit. Each bit is a power of 2 from 2^(0) to 2^(X).
it’s because of how 32-bit integer overflow works. Because the number of available options for the value hinges on binary, the maximum value is a power of 2. go over it and you’re wrapped around!
It's because 2^31 = 2147483648. The money is stored as a 32-bit signed integer, meaning that 31 bits are used for the actual value, with the final bit indicating whether it is positive or negative.
At the game over pop-up it says that you made 0ver 2.162 billion, so that pop-up i guess doesnt stop at 2,147,483,648. Maybe next tume see how much while seeing how far you can go then when you get out see how much you actually made.
there was a bug in co-op mode a few months ago where if u and another player send money to each other very fast, it dupes aka more money. then we capped out at -2,147,483,648 at round 10 coz thats abt when we found it
@@Theteir5bananafarmand that’s wrong. You can get flagged for manually transporting (altho, why would you?), you can get flagged for using mods (even stuff that doesn’t affect gameplay like 8x speed) and you can get flagged for using a pirated client for the game. This shouldn’t ban you, but if you want to be extra careful, don’t do gamebreaking glitches like this 😅
Bro ya’lls times are insane. Ya’ll get to round 200 in like 30 minutes, but it took me 1 hour 11 minutes to get to round 276 with all paragons major farms and a VTSG and BMA (Bloon Master Alch)
You probably won’t see this comment anymore, but a year ago was another glitch which gave you over 100^000000 with a thrive power just in round 2 in co-op mode. This is also how I got a way too high number of gifted money in co-op on my btd6 profile 😂
Hbomb summoning his inner player 3 to make this video
Haha. I'm always in p3 mode
@@Hbomb’welcome, to the Bloons TD 6 Player 3 suit. Have a very, safe, day.’
Well, player 3 took player 1,2, and 4s tiles
@@Hbomb I have to report this video for spam because you’re spam requesting for money in the co-op game.
No, no, NOOOO flashback to inner agent 3 @splatoonfans
Every monkey in the game: We have infinity money!
Paragons: No, we don't 😠
Lmao
Lmao
Lmao
Lmao
Lmao
The funniest thing hbomb said was "print money faster than the us government" inflation goes hard
fr tho
Blud really became player -3
two's complement is simpler if you think of it as the first bit has a place value of negative 2^31, instead of the complicated bit inverting process
I was about to comment this
@x_540 Then you both are wrong...
Just kidding, you only got wrong the exponent (it's 31), the general idea is ok.
@@PotatoBTD6 shit ima edit it
@@PotatoBTD6 oh yea, I forgot it (the exponent) starts at zero not one
The explanation Hbomb gave is also not entirely correct, in order to get the two's complement for a number you don't just need to flip all the bits, you also need to add 1 at the end
I heckin love 32-bit integer overflow
unsigned*
@@sunbleachedangel signed*.
unsigned goes to 0 when going over ~4 billion
@@sunbleachedangelA signed 32-bit integer is in the range -2147483648 to 2147483647 and an unsigned 32-bit integer is in the range 0 to 4294967295, meaning this is in fact a signed integer as already said
@@sunbleachedangelonto nothing
@@trinityy-7 i knew I'd mix them up
I just realized my original comment said that btd 6's pc money limit was 9,223,372,036,854,775,807, but said that only some of them are like that, and others are 2,147,483,647. I think there is a 64-bit version of the game with that first number, and the 32-bit version with the second.
9,22 Quintillion money would be too insane for the game to handle though. That ludicrous amount would probably break the game even more than the 32-Bit integer limit 😂🤔
@@firebolt1104I don’t see how the high number would break the game, if you’ve got the bits for the number you’re good
But using 64 bit version of the game doesnt mean that every single variable is 64 bit. Declared variables do take memory and require more complicated computations, even tho if the number itself its not big enough. Sure this wouldnt probably break the game, but BTD6 is already hella unoptimised game, so i dont think that using cash as 64 bit int is reasonable, especially when in normal runs you would never break through this barrier
I think you can actually make up to 1.8e308(centillion/infinite) which is where money absolutely breaks,it says you have INF but you cant buy anything
UA-cam broke my notifications for this, so I will just say a few things
1. I wasn't sure if the 64-bit version would increase the limit or not, and it MIGHT do it, but I don't have the game on pc to check
2. The game storing the number as 64-bit probably won't affect the frame rate that much if it won't need it in regular use, and only allocate it when it gets close to surpassing the 32-bit limit (I don't do any programming so if there is a programmer that can fact check this, please tell me what the correct thing you can do is)
3. The guy here who said that it can go to something in the centillions or to infinite, that is only in modding and not in the base game
(24 seconds) US Government: "Is that a challenge"???
you know you can just put 0:24
Rizzler
@@Tommy_plays_gamesbro
0:24
I think they'd beat me
5:40 Any of ypu guys seen those druids make a tree with their projectiles when the BAD comes close to them??
Really cool video, especially the in depth explanation. You did a good job on it :)
Thanks, I wasn't sure how in depth I should go!
@@Hbomb np, keep up the good work :)
I had assumed the game would count money as a floating point number rather than an int, considering stuff like fractions of money from late round pops or Skimming in Half Cash.
Surprised to see they actually use a 32-bit signed integer instead.
I wonder if they have a separate value that tracks the decimal amount and then adds 1 to your money whenever the value goes above 1
Using floating would be quite stupid
WE LEARNING COMPUTER SCIENCE WITH THIS ONE🔥🔥🔥🔥
My head hurts
@RomanKlayman-dz4bgfr
@RomanKlayman-dz4bg unless we were being taught haskell or assembly
🤓
@@adammarkszobek655 Oh shut up
1:00 it's important to note that you can use more than 32 bits for integers, bloons just doesn't.
7:25 , i tried this myself with mods and found out that if you push the paragon sloder backwards (pretty sure , it happend to me in game) il lets you put the negative amount, and basically guarantees a degree 100 paragon
I get that content creators don’t like using double money but if we’re just trying to see the maximum I don’t understand why not. Only really helps start the exponential farming a round or two earlier
another way to think about two's compliment is that the most significant bit, instead of representing 2^31 like normal, represents -2^31
making 10...0 represent 1×-2^31 + 0×2^30 + ... + 0×2^0 ≈ -2×10^9
Thank you “HBall” for making so much money that you actually go into debt.
1:08 what you described is the representation of negative numbers using sign bits. Integers in programming use so called two complements, where the most significant bit (first on left) is turned negative (in case of int32: from 2^32 to -(2^32)). The reason for this it that addition with two compliment numbers works out of the box like it would with only positive numbers, while you need much more complicated logic for sign bits.
Sign bits also waste some space because you have both 0 and -0
I always think of Hbomb while pressing the H key to place banana farms
@@Hbomb why don’t you change the accessibility in game to reduce lag
3 months late but projectile size only helps bit rate, they don’t reduce lag
@@joeflemo64 what he said. what lags is the calcs in the bg for pops
Interesting video. Also love the 'Cult of the Lamb'-Music :D Maybe as a tipp for such videos: go to options then 'accessibility' and scale the FX all the way down. That way it won't melt your computer (or your eyes) and won't slow down as much.
Hbomb, I really enjoyed watching this, so I hit the like button!
Peak Player 3 gameplay is breaking the money counter. We funding High Finance with this one
TO MUCH INFLATION YOU JUST HAVE REVIVED 8916725738918263666543573919273 DDTS
Tewtiy! Take notes on this! NO MODS😂
Hbomb regularly realesing math itself within its brain
ohhh!! so this is why player 3 never donates! the integer limit doesn’t let him
It's so strange that the money doesn't keep increasing from the negatives. You'd think gaining more money would increase the value of the lower bits, and that would make the number less negative, and yet it stays identical
4:00 whats the ability left from the perma charge?
That let's you explode the Spirit of the Forest's vines for damage (and maybe a stun, I don't remember). But then the vines have to regrow
@@HbombI think tewtiy beat 100 zomg's with it
You can only get the ability with a monkey knowledge point
Thanks for reaching the integer limit like I suggested. :)
0:28 NAW THE WAY HE CONFIDENTALLY SAID THAT GOT ME ROLLING
I love seeing how when enemies go close to pools, MILLIONS of projectiles attack them
"Lets try to beat phayze without farming" my friend:
PLEASE UPLOAD MORE VIDEOS, YOU’RE LITERALLY MY FAVE BTD UA-camR
I'm trying
Tewtiy watching this him like are you serious 😂😂
“print money faster than the us government” 💀💀
1:04 Hbomb educational break?
Haha. Had to let my Computer Engineering side out
YOO COMPUTER ENGINEERS UNITE
Correction:
That starting explanation was of signed integers. Unsigned integers swap out the first bit for another magnitude bit. Each bit is a power of 2 from 2^(0) to 2^(X).
“Print money faster than the US government” and this is why this man is a btd6 youtuber.
That number is a very oddly specific number 0:46
it’s because of how 32-bit integer overflow works. Because the number of available options for the value hinges on binary, the maximum value is a power of 2. go over it and you’re wrapped around!
It's because 2^31 = 2147483648. The money is stored as a 32-bit signed integer, meaning that 31 bits are used for the actual value, with the final bit indicating whether it is positive or negative.
put 2^31-1 into a calculator
It's 2^32 - 1
@@DragonTheOneDZA It's actually 2^(32 - 1) but yes
even with infinite money, the paragons are still too expensive :sob:
Even the 0-0-0 Dart Monkey
I did this with the ascended upgrades mod and with one banana farm I got to the integer limit and with the legend of the night I made it to round 1300
At the game over pop-up it says that you made 0ver 2.162 billion, so that pop-up i guess doesnt stop at 2,147,483,648. Maybe next tume see how much while seeing how far you can go then when you get out see how much you actually made.
"Print money faster that the us government" 💀💀💀
I was here at the 11th second of the video being uploaded
7:57 … i think that’s a fake one because if everything adds up, there are 100.1% of people watching
Rounding exists
Man I bet it would have been nice for him to have made this video after they made multiple jungles bounty instantly use their ability together
Is the integer limit thing like a limit on computers? I don’t get why they can’t just make the number go on forever
hbomb turning into a god for a second
“Its called the pool stacking glitch and we are gonna use it to print money faster than the US government.”
there was a bug in co-op mode a few months ago where if u and another player send money to each other very fast, it dupes aka more money. then we capped out at -2,147,483,648 at round 10 coz thats abt when we found it
I got a question Hbom.
Which monkey is the best one for Bloonarius?
Probably the Goliath Doomship
Thanks
So it's the best paragon to spend 60 rounds getting the 60 totems
H-bomb is my new maths teacher 😅
“I need to make 2 billion total and I have only ever made 3 billion. We need to double it!”
Player 3 taking notes right now
Hbomb I hear the cult of the lamb music it can never be hidden from me I always catch it
Hbomb ready to make this: *informs into p3*
Mobile players trying this:
???
I Would but I don't wanna be flagged 😅
Don’t worry u only get flagged for hacking
@@Theteir5bananafarmand that’s wrong. You can get flagged for manually transporting (altho, why would you?), you can get flagged for using mods (even stuff that doesn’t affect gameplay like 8x speed) and you can get flagged for using a pirated client for the game.
This shouldn’t ban you, but if you want to be extra careful, don’t do gamebreaking glitches like this 😅
O_O
"...to print money faster than the us government" 💀
He ain’t wrong
👍🏿
I can't wait for this to become a speedrun category lol
I would kinda want to see the challenge without a glitch and see how much you can get in a regular game
Bro, he’s summoning his inner player five that’s crazy
The cult of the lamb music is very fitting
Imagine putting all of the paragons on the same pool so you destroy absolutely anything
Question: How many pools do you need to do the glitch?
Around 14 or 25
@@FenchBaget thanks
Question: how many portable lakes do you need to do this glitch?
Ngl hmomb knows everything Nice Vid❤❤
Hbomb giving us a math lesson for no damn reason
Average Sabre moment be like:
5:45 (and after) How many videos did you watch to understand why that happens lol
to be fair it's a relatively simple coding process that you are kinda taught about very early on into any course concerning programming
@@Quackyduck300 neat
cult of the Lamb Music is Great
this guy is a better math teacher then my professors
It's always interesting if games cap you at max or just don't expect you to get to max and let it overflow
I agree. I don't blame NK for thinking no one would hit 2 billion dollars
Faster than the US Government prints money 😂
even if the US gov could have a pool of infinite monkeys that give them $2B, it still wouldn’t come close to paying off how much they owe in debt💀
My dude making more money than in sandbox
Why does this feel like a matpat episode
Bro ya’lls times are insane. Ya’ll get to round 200 in like 30 minutes, but it took me 1 hour 11 minutes to get to round 276 with all paragons major farms and a VTSG and BMA (Bloon Master Alch)
A person who uses Java script would know the answer to this which is the integer limit
0:25 that caught me off guard
I hate that 32 bit integer cap, it ruined my subway surfer run😭
Is it going to wrap to negative after 9,223,372,036,854,775,807?
If you had done the paragons before hitting the integer could you have had multiple max paragons
Is there a good reason they didnt make this an unsigned integer? I guess because you can take loans and stuff?
That would be my guess. And why would anyone hit the cap outside of modding and making this video 🤣
glad i finally got an answer to this
so how do games work that need to exceed this limit? thinking for example a game like cookie clicker?
"To print money faster than the US Government."
As someone who does A-level Computer Science, I can't believe it's helped me understand a bloons video lmao
explains the reason behind the number for max cash in OSRS ty
I once tried to fix the issue and be a god dam programming god but I only re invented the thing
7:54 Please keep it that way
get as many tier 5 banana farms in a co op, with a bunch of farmers, then beg for money, easy way.
Wait what if you did this with monkey money then could you buy inf powers
I don't know if I'm too late or it's already been asked, but what did this do to the total cash earned statistic on your account, if anything?
I thought that there would be no way to purchase anything since you have negative money, but it turns out you actually can place anything lol
Does anybody know if this flags ur account?
I doubt it. Mine isn't flagged yet
You probably won’t see this comment anymore, but a year ago was another glitch which gave you over 100^000000 with a thrive power just in round 2 in co-op mode. This is also how I got a way too high number of gifted money in co-op on my btd6 profile 😂
Shoutout to the thumbnail 👏🏼👏🏼
Will i get banned if i use this not in singleplayer? asking for a friend of course
I wonder what happens if you get into debt from imf loan after you pass the limit
what happens when you hit -2.1 billion dollars in debt from farms? does it just go away or does the irs comd after you
Wonder if negative money would allow you to spam buy level 20 geraldo, place 2 paragon totems then sell for ez 100 paragons
Bro is a stuck in the past
You should actually play the game instead of watching degree 100 paragon videos and you will know