Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lua floor division operator not recognised #4571

Closed
adrfantini opened this issue Oct 13, 2021 · 1 comment
Closed

Lua floor division operator not recognised #4571

adrfantini opened this issue Oct 13, 2021 · 1 comment

Comments

@adrfantini
Copy link

Ace seems to consider the Lua operator // as invalid.
See for example this code:

function round(v, step)
    return math.tointeger((v + step*0.5) // step * step)
end

This is supported in Lua 5.3 (doc)

Tested in the kitchen sink.

@andrewnester
Copy link
Contributor

Fixed and released in 1.12.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants