Lua on replit integer division operator

whenever i try using // (integer division operator) by the way I used 25 // 2 it always responds with 'lua: main.lua:1: unexpected symbol near ‘/’ when on my udemy code course it said it would show the integer part of the answer (so 12). Could someone please help me

Replit has lua 5.2.4, but the // operator was added in 5.3

I’ve set up a lua 5.3 repl for you to fork here: Lua 5.3 - Lua Repl - Replit

Let me know if you have any issues with that! :+1:

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.