Does pico-8 not support Lua's // (floor division) operator?
> PRINT(15 / 8) 1.875 > PRINT(15 // 8) SYNTAX ERROR