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:

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

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

>another problem is lack of

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