Re: remainder() is not right
- Posted by "Euler German" <eulerg at gmail.com> May 05, 2008
- 1073 views
> On 4 May 2008 at 9:48, Arthur Crump wrote (maybe snipped): > Nobody seems to have ponted out yet that the documenation for > remainder says that the result is the same sign as the first argument, > not the second, as CChris seems to have assumed. > In my opinion he is proposing a modulo function, say mod(x, y). It could be defined as: mod(x, y) = x - y * floor(x / y) ...and it will produce those results he claim remainder(x, y) should give. I just think they are different functions. Maybe mod(x, y) could be part of math.e Best, Euler -- _ _| euler f german _| sete lagoas, mg, brazil _| efgerman{AT}gmail{DOT}com _| ----------------------------- _| Reply preferably to the list, _| or to the address above. Thx!