Hi
I want to get just the integral part of a number so if the number is 0.4 it would return 0 if it’s 1.2 it will return 1 but also when it’s 2.9 it will return 2 so I don’t think rounding works here.
Just do:
math.floor(num)
If your number is 1.1, it’ll become 1. If it’s 1.9, it’ll also become 1. It just rounds down to the nearest whole number.
2 Likes