What are you doing with the result. It will help us know the correct approach. If you’re just wanting to remove the decimal point for display the solution is totally different than wanting to do arithmetic with the result.
Well it was the cost of upgrades in an idle game I’m working on. I increase the cost of the upgrade every time it’s bought, with mathf.pow. But it had to be only be whole 100 numbers, and couldn’t be say “456” so I had to round.
unRounded was equal to the cost after using mathf.pow. This added some numbers to it that I didn’t want like “56” when I just wanted 500.
So I did the rounding but after getting into billions that stopped working…
It’s all good now though, mathf.ceil works. And mathf.floor when I want it to be the lowest.