 So you undeclare it Okay, so we're about to approach The end so yeah, see I gotta fix some of these some of this text issue Hello guys cryptic grounds here. Welcome back to another unity idle game tutorial video. This is episodes 36 and today we're gonna be doing another notation. It's gonna be the KM BTQ the thousand million billion trillion That's been highly requested I mean, I've done another video on it in the past with the clicker heroes But I'm just gonna add it on to this series So it kind of flows together and it's very similar to our letter notation. So except we're gonna be adding a list of Prefixes so let's hop into it. I believe this is located in This is located in methods, so let's hop right in also if you enjoyed this video Make sure you smash that like button subscribe to my channel if you're new turn on those notifications to all videos So you get notified for all my new uploads comment your suggestions and all the good questions below or anything advice Compliments anything down in the comments below. I'll make sure to read every single one of them and check out my other videos in the top right corner Okay, so we are in our methods class And we are in our Notation method and what we're gonna do is we're gonna build on to this Okay, we're gonna add a third notation and again, this is very similar to our Our letter notation so this is a lot of copy and pasting, okay So first of all we need our exponent which we do math that floor Log 10 X and if you if you're new to this series and you're just starting here basically log 10 takes the Let's say for example log 10, let's say Ford 400, okay, it's just it Let's do better one like 100 locked in 100 that it's two right, so it's it's a grunt like a How can I explain this without being too confusing if you just look up what log is Or what the graph is Basically, it's like an inverse of 10 to the X okay, okay So if we graph log X or which is log base 10 X and 10 to the X you can see that these are pretty much inverses, right? this is just rotated and Flipped or it's literally just flipped over the X and Y so that's what log base X is same with Let's do example log based who of X is The inverse of two to the X so if we take these off you can see they're inverses, okay? It's the complete opposite, right? So hopefully that makes sense and what floor does it basically does round or it rounds it Floor so floor is like what you're stepping on right it rounds down while ceiling it rounds up, okay? See how it kind of just rounds up right here Rather than getting the exact Two to the X see that's floor and this is ceiling or which I think here is just seal Seal yeah, you can see that there's a difference Okay, so seal is before that and floor is right after that, okay? See how that steps up here this steps up here, you know, okay, so that's how that works So this is ceiling this is floor, okay? So now here we find the amount of Or our current exponents we do floor log base 10 X, okay? So this can be just called exponent, right? Okay? Okay, and now we need our Exponent engineering here to determine because again, this is the same thing as letter notation So we're gonna have 1a or 10a 100 a 1b, okay? So we want to have this Replace the exponents we want to be able to show up to three digits or yeah up to 999.99 and then it'll switch letters, okay? So this will be I I Can't think of a better name. So I'm just gonna do third exponent. I guess I don't know I don't know a better name than that other than something like this third exponents, okay? Okay, and before we continue on I feel like it's necessary to create a list of all these Okay, so we're gonna do var prefixes equals new dictionary and this is going to be int string This is actually me a double double string And we're gonna pre-define this I see we forgot the new Okay, and now in here, let's do so let's say so three is going to be K Okay, it looks like we can get rid of this. This is not being used. Okay I'm going off of what website I went off right here Um crusaders of the lost idols we're going we're going over the large number of abbreviations So if you don't know what any of these abbreviations mean here you go Basically, this is the same thing as scientific 1 e 3 1 e 6 1 e 9 1 e 12 1 e 15, okay Okay, so then they equal to all these like a thousand million billion trillion quadrillion quintillion sextillion septillion Which is all these okay, so we have our basic k Mbtq Okay, so this is where we kind of get weird So they do like this person does like the lowercase q in the capital q now There's different ways of doing this. So I personally don't like that because I it's I don't know I just don't like it. So this one's quadrillion. So I like to do quad and then for quintillion I like to do Quinn or quints Or You can do Qa qi something like that. So like qi like that and then you have qa that also works Also, we want to increment these by three. So three nine 12 15 and you just keep building on this list till you want to end and We're automatically converts to scientific notation because that's just where it's kind of dumb Okay, so we have quintillion We have sextillion right. Yep. Okay, so we have sextillion septillion octillion on million decillion. Okay, so 18 This is 1 e 18 1 e 21 1 e No, I was actually writing it out 1 e 24 27 30 Okay, so this is gonna be sextillion. So again, we're we're again. We're at the s's right So of course, it's not mature to just put sex. Okay People are gonna, you know, be immature Now, of course, you can do sex and sep now people aren't gonna be mature because again It's the internet people are mature. So for sextillion We can just do I hate this one. Okay This one's annoying So you can do septillion you can literally just do sep and then this one will be sexed See again, it's just people are just so immature on the internet. Okay, and I also like the full abbreviations to sextillion Septillion so, you know what? Let's just I Hate this. Let's just do the full word thousand. Okay Okay You can choose. Oh, I also I forgot one. There's a billion too. I forgot about billion and then trillion quadrillion quintillion Okay, so that's three six nine nine twelve fifteen eighteen twenty-one twenty-four twenty-seven thirty thirty-three Okay, so after septillion is octillion After that is non-nillion which is one e-30 and then decillion which is one e-33 Okay, we can continue beyond this where we go to undecillion. Okay, so Let's add up to e-60. All right, let's just go to 166. Okay, so that's all of this again You know what? Let's just copy pieces 1 2 3 4 5 6 7 8 9 10 11 12. I think that's fine. So we got 36 39 42 45 48 51 54 57 60 66 right. Yeah, and you can keep building on this or you can automatically convert it. Okay But I'm gonna stop at 66 because this is getting lengthy. Okay, so we have decalion Undecalion Right. Yeah, and then it goes duo tre duo decalion tre decalion quad decalion Is that how you spell it right? No, it's oh, I know it's this Quartoro decalion. I think that's how you say it See these just get really complex which is again. I hate this system with a passion It's scientific is so much easier and you're making this so you should know how scientific notes Notation work after this for sure But this is just so ugly to read and of course you can let her know letter Regular letter notation is better than this right rather than the full word Yeah No, Vendekillian Vigiantillian Vigantillian. I don't know. It's Vig or Vig and then on Yeah, actually, no, this is just yeah Okay, and again it goes to duo tre You see the pattern here. Okay here. We can literally just add one more here All right two more. Let's do two more. So it's duo and then Tre Vigantillian duo Now see this is just not I don't like this right so we have our list of prefixes. Okay? Okay, so we're gonna do the same thing If X is greater then we're gonna do greater equal then All right, I think that's right. Yeah Okay, that should be okay Okay, so now we are again. We're pretty much returning the same thing here, right? Okay, so we need to replace this with the exponents, right? No, it's with third exponent Okay, we're gonna get rid of this letter one because that's not what it is. It's actually prefixes At third exponents, okay, so again, we do this here because it goes to three six nine here I'll show you an example. So if we do three times floor Let's do X divided by three. So if we do zero, this is obviously gonna be zero if we do one zero And now what if it's three we have three which is a thousand, right? So that's if the exponent is three if the exponent's five It's gonna be three if the exponent is six. It's gonna be six. Okay, so that's how that system works and Let's see. What's up here? It looks like this is a big double Right. Yep. Okay, so I think we're done here So basically what this does here, I think I've explained this quite a few times in the past But basically it takes our mantisa So it takes our number it divides it by our exponent and Our third exponents because we don't want to divide by every exponent or else It's just gonna look like scientific notation and instead of 100,000 it may look like 1000 again, right? It'll just keep looping through that So we do every third exponents plus the prefixes right here, okay? And it looks like we should so in this case we should space these out because they're not Like again, it really depends if you want to space them out or not like so if you do K MBT Then you don't have to you can do one space K or you can just have no space spacing in here in Here This is what mine looks like. This is what yours should look like now. We need to I think we need we need to make this switch things still Right notation method. Oh Notation settings, okay, so where do we adjust this? Yeah, okay, so now we're gonna go to our change notation in the settings class and we're going to add a three Okay, so we're gonna replace this Case two with a three and we're gonna set note in case two equal to three So then it can continue cycling through here and also we're gonna do the same thing in the update notation text We're gonna add a three and we're just gonna do Let's just call this I don't honestly what is this called Large number of revolutions. I don't I don't like that. I don't know what it's called. I would say Like word notation, I guess, okay So we're gonna do word notation. That'll be the last one one thing I forgot to do is to automatically convert afterwards because if we have like one 80 then it's gonna look kind of funky So let's go to our methods And what we're gonna do is after okay, so and a new if statement here Okay, so if x is greater than or equal to 1e 76 okay, so this will support no, it's actually 1e 75 because 1e 75 is 1000 Travigent alien, okay, so we're gonna do if x is greater than or equal then Or is yeah greater than equal then 1e 75 We're going to return scientific notation. So let's grab it up here. This is scientific notation right here and Honestly, let's make a variable called mantisa while we're at it and that's gonna be this Get rid of these commas it's x divided by 10 to the power of third exponent. So pow 10 comma third exponent. Oh Okay, I see some issue here here. Let's copy this mantisa. Oh Actually, you know what this will just become engineering notation. Let's do that. So then now we do mantisa to string F2 and our exponent is It's gonna be third exponent instead this is basically science. This is basically engineering notation instead Okay, so after a certain amount of points that are doing words, it's going to do exponents So I'll demonstrate that Let's capsulate this because it's gonna confuse everything Okay, so if this hat if this is true Else this will happen. I think this is redundancy. I figured Let's Mix things around. Okay. So basically I'm going to inverse Invert this so basically what it's gonna do is set this so if x is less than or equal than 1,000 It's going to return just the number If that's false, it's going to check if it's greater than or equal than 2075 If it's true, it's going to return it as engineering notation. If it's false, it's going to return it as a word notation so this is normal number This is if 1e75 Or more Or more do engineering and notation Otherwise Do word notation. Okay, so hopefully that makes sense Let's give this a shot. I don't think we have to do anything inside here It should be done and ready for us Okay, so we're gonna have to switch our notation So let's go to our settings as changes to word notation. Oh, I see that they're cutting off. I didn't notice that Okay That's an issue. So we have some kind of display errors here Yeah, okay, let's fix that real quick. Now. This isn't like game breaking or anything But it it's a simple fix. So this is our inner header. Why is our coin so frickin thick? I Don't know can't tell you Same with gems gems is really like thick boy, too. Oh, this is best fit. We need this Okay, why does coins have to have best fit Interesting. So no wonder why things kind of look funky sometimes Okay, well, let's I'm just fixing some of my user interface So if things look funky if you can't see some text just adjust the the best fit the font size And if you want it to scale based on how big the font or how large the string is Inside the text then just turn on best fit and you can adjust settings there Okay, so let's check this out. Ah, this is still not working. Okay Why is this so big? Okay, this should work Same with gems gems is way too big. So our user interface is kind of bad. I'm gonna be completely honest It's not looking good So just make some adjustments and it should look good. Okay. So we have 31 point sixty one thousand Okay, so again, this could be K with or without the space. So let's add some upgrades Okay by max where? OCD So this is one worth one point six thousand now. Let's spend all of this Okay, so now let's just watch this now. I'm gonna keep incrementing this number once we get to a thousand Okay, so that works cool. So now let's go to our earth. No, it's just game manager right here So let's increment increment this number by one. So we have four five six Seven that's eight now Okay, so I'm just gonna come at this by one. This is eight. This is nine ten 11 12 this is one e 12 13 14 15 16 17 18 we can just keep going you can see that gradually works. Oh Oops actually did a double plus One e 32 33 34 35 36 37 what's wrong? Okay, so we're gonna try something. I think the issue here is that we are part we just keep Creating this array every single time and I feel like we should just make a static a private static Dictionary with big double and string Okay, this should work better Let's see what's wrong with this Me make it read only. Yeah, okay, so now we're just going to initialize this Dictionary outside because we don't want to create a new dictionary every single time we access Notation because that's kind of sloppy Okay, I don't know why this works But what I did instead I replaced the dictionary to be it the dictionary type to be an int and string Okay, so now since Third exponent is a type big double I decided to cast this third exponents as an int and for some reason it worked. I don't know why I'm gonna be completely honest I don't know why that's really weird if Some of you guys are better coders than me and you're watching this video and you don't understand why I please comment below I'm very interested in why that didn't work even though it literally prints 33, right? It was 33 there's no spaces or anything. I don't know that was interesting, but anyways, let's continue So you're undeclared Okay, so we're about to approach The end. So yeah, see I gotta fix some of these some of this text issues Okay This is where we find out if it does it okay, this is the last one Yeah, there we go. So now it's engineering notation cool beautiful All right If you enjoyed this video make sure you smash that like button subscribe to my channel if you're new and turn on those Notifications and check out my other videos in the top right corner. Thank you guys so much for watching Also, I would just want to say if you've been watching since the first few I want to thank you very much It means truly a lot to me and that you've been around for such a long time I have lots of stuff planned ahead of me. So if you plan on staying, thank you very much We are now officially two patreon's away from the anti matter dimension series So make sure you if you want to join I think the minimum cost is three dollars a month So that's all it takes to participate in this new series. Anyways, thank you guys for watching. Peace