- Joined
- Aug 23, 2008
- Messages
- 2,319
I want to make a system that rounds down a number to a full number. I got these statistical Integer values and want to calculate a stat with it. For example: 'Magic Defense = 20 + (0.3 * (Level of Unit))'. At for example level 12, you'd have 'Magic Defense = 20 + (0.3 * 12) = 23.6'. In this case, I want Magic Defense to be 23. Even at e.g. level 13 (resulting in 23.9), I want it to come out as 23. Is there any way to set the digits behind the comma to 00, or another way to round down this?
EDIT: Just got a solution through chat.
EDIT: Just got a solution through chat.