 guys crypto grounds here. Welcome back to another auto game tutorial video this episode 29. Today we're going to be doing engineering notation. So this should be a pretty quick video because we have our notation set up already. So all we need to do is just hop into our script. We don't need to do anything in unity. This is all just code related. Okay. Okay. So we have our notation method here. Now right now this is scientific notation. So we're going to have to split this up to numerous ones. Or yeah, we're going to do that. Since this is we're trying to access a non static class into a static method. It's not going to we can't do public idle tutorial game game because it's non static. So what we're going to do instead is completely add a new thing to our notation method which means we have to replace everything. Okay. So we're going to do int index. Actually, I have an idea. So let's add a public static int notation settings. Okay, so what we're going to do with this is go to our settings. And we're going to set notation settings equals to note. Okay. And then we put methods. Okay. That looks like that should work. Lovely. Okay. Okay. So now what I'm going to do with this is bring this inside. So now it updates every time we change our notation. We also need to have this at the start as well. Okay. So we do methods on notation settings equals data notation type. Okay. So now we're changing the static version. So it should be global and we don't have to do anything with the actual method itself. We don't have to add any parameters. So that should work just fine. Now we need a switch case statement. Okay. So we're going to switch and we're going to do notation settings. And for our first one, it's scientific notation. If it's zero, we have this and we add a break to it. Actually, we don't need a break because we have this return right here. Okay. So then we have we need our engineering. So let's develop the engineering. Okay. So this is pretty similar. But basically, we're just trying to have three numbers instead of one. So basically, the exponent increases every three set of one. If the same thing, actually, we might as well just add this to the beginning. Okay. We don't need we don't need to do that once. So we're gonna have our exponent bar exponent. And that's gonna be equal to three times math. No, this is just floor. So this is floor because we're using big double that floor. Okay. So we're using floor. And then we have another floor in here. And we divide this by three. Okay. And then oops, and then inside the floor, we do math dot log times 10x. Okay. So what's the difference between this one and this one? Basically, we're trying to round up the exponents up to every three. So how a floor works is that it rounds the number down to the round to the the previous integer number. So if we have 4.5 floor will be four right floor 4.5 will be four. Okay. So now what we're doing here in order Oh, we don't need math log oops, it's just log 10. So now what we're doing here is that we are dividing this by three. And we are logging it and multiplying it back by three. So we're rounding it down three steps. So if it's five, it'll be three. Okay. And those six, it'll be six if it's seven, it'll be six. So that's how that works. And also these need to be, we can also add curly braces in here to be able to use the same. Let me see if this works, I think it does. Yep, it works. So in order to be able to use the same variable name, you can just add curly braces here, otherwise, it will not encapsulate. That means we can't use the same name we have to do like exponent two or something like that. Something quite learned someone gave me that in the comments. So I really appreciate that. And next is going to be our mantisa. And this will be similar kind of this we have the three numbers as well, except and now actually, yeah, this is it. So now we have our exponent here. And yeah, that should be good. Okay. And returning is the same as usual, like this. Perfect. So this should be it. We can save. You have an error. Where's our error? It's just somewhere. Oh, I see. Okay. And if it's two, they will return nothing for now, because we still got to develop that. Okay. Hopefully it'll work. I'm guessing it will. And if we have to make this non static, I'm going to cry. Okay, looks good so far. Oh, we're gone for two days now. So also really sorry for the slow uploads this week. I'm going to start playing I'm going to try to start spacing videos out because I want the series to long quite a bit of time. And I don't want to run out of ideas, even though I have a really long list right now. I just it's just for the long term. I want to have quite a bit of ideas. But once I've started thinking more things, I will pick up the pace, of course. So there won't be another video till next Thursday or this Thursday. That's why I plan on doing another one of these. And hopefully I'll pick up the pace too. Because I need to catch up. Okay, so what's going on here? Settings. Where's our settings? Why is our settings not working? This is like not working at all. Why is this not working? Okay, so let's go to settings should be working, but it's not. That's like ginormous. Is it like doing anything at all? Why? Okay, that was weird. Okay, I'm guessing what I'm guessing it's the setting screen. It's the canvas group that's screwing up. And why I still have a canvas screen. I don't know. Let's get rid of that. Because this should just be a graphic recaster. Yeah, okay. So yeah, these, this is a game object. So we can just get rid of this. Okay, save that last demotification. Go away, please. Okay, so now it's just not coming back. Why is it not working? Like, I'm guessing it's because it's behind some text. Okay, that was the reason why. Okay. Well, that fixes our issue. Just make sure the the buttons that need to be on top of the text are dragged at the bottom. Because these things are the higher objects. Alright, so now if we go to settings, change to engineering notation should work. Okay, I think this is it. Let's get to, let's prestige. It's main right here. The prestige is not working either. What? Why is wrong? What? All my buttons are just broken now all of a sudden. Let's see what's up. Oh, it's missing prestige. Okay. Well, that's kind of an issue. I think we moved our prestige to earth prestige manager. Okay, I totally forgot about that. So hopefully it didn't screw any of you guys up. If it did, I'm sure you guys have commented by now. Okay, well, now we should be able to prestige. Okay. So it looks like it's working so far. I need more upgrades though. It's simply not enough. Can I rebirth yet? Oh, that's not supposed to show. I think I, I think I'm going to put this on top of the buttons like that. Or not. It's supposed to look like this. So I don't know what went wrong with that. Okay, let's rebirth. I don't know how much better they really are. Oh, that was kind of a waste. I got wasted. Okay, but anyways, I let's pick up the game paste. So basically we can go here. Let's test it. So 123456. And it's one. Does that work? So now if it's 525, it's 103. Perfect. We got ourselves an engineering notation. There you go. Cool. Anyways, I hope you guys enjoyed this quick video. If you didn't make sure you smash a like comment your suggestions on below. If you have any questions, let me know and I'll be sure answer them pretty fast. Anyways, if you're new, subscribe to my channel, turn on notifications, check out my other videos in that corner. Have a good day. Thank you for watching. Peace.