I’m working on a game that calculates coins by dividing points by 100 and then adding them to storage
Let’s say, for example, that you get 3050 points, you will get 30.5 coins, well, I want to ignore that 5. Either by removing it or rounding it to the nearest unit,
Thanks (sorry for not using screenshots or illustrations, but I don’t think it’s worth it)
Hi, there is for instance
floor(number) for rounding down or
ceil(number) for rounding up. There are also other expressions that may fit your case better. You can find them here: Expressions reference [GDevelop wiki] (you need to scroll down until ‘Mathematical tools’).