Re: Odd and Even
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Odd and Even
- From: Ron Hudson <ron.hudson@...>
- Date: 2005年8月20日 09:40:53 -0700
Thanks!
I see it *now*....
On Aug 20, 2005, at 9:05 AM, Ashwin Hirschi wrote:
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:
http://www.lua.org/manual/5.0/manual.html#5.5
Ashwin.
--
no signature is a signature.