lua-users home
lua-l archive

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


Użytkownik Luiz Henrique de Figueiredo napisał:

>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.

??? :-o
In my opinion it is?
Im thinking about something like this:

C:
int m = 4/3;
int n = 4%3;

Lua:
m,n = math.div(4,3);



>another problem is lack of math.int().


Try math.floor or math.ceil.

Thaks, I missed this..

Best Regards,
Andrzej Borsuk


--
     _
    (;[   SPAM?
   \/>)   Proszę wysyłać na moje podstawowe konto
  `ab~^   mailto:root@localhost