3 ms·
math.floor(x / n) can be written x // n It's worth noting that x//n returns an int and math.floor returns a float, so the statements aren't equivalent.
by dagw 15y ago
math.floor(x / n) can be written x // n
It's worth noting that x//n returns an int and math.floor returns a float, so the statements aren't equivalent.
- jacobolus 15y agoIf you pass a float in as x or n, x // n will be a float.