lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

I need to tell if a number is odd or even,
I have looked at "Programming in Lua" and
there does not seem to be a modulus
(remainder) operator, or and int functions
(returns the integer part of a floating
point numbner)

It's there alright, you can use math.mod:

no signature is a signature.