[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: lua-5.0: math lib
- From: Andrzej Borsuk <andrzej.borsuk@...>
- Date: Thu, 21 Nov 2002 15:25:17 +0100
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