>I have fond one "inconsequence" in lua-5 standard math library >There is math.mod but no math.div Because there isn't one in ANSI C. >another problem is lack of math.int(). Try math.floor or math.ceil. --lhf