Re: remainder() is not right
- Posted by Matt Lewis <matthewwalkerlewis at ?mail?com> May 05, 2008
- 1087 views
Euler German wrote: > > If I got the idea right, this has to do with de *ability* to convert > Euphoria code into C. The modulo operator in C doesn't behave exactly > the same way depending of the compiler and hardware. Seems they > "fixed" it after ISO 1999. In a 100% Euphoria world remainder() > should suffice, but after translated into C would it produce the same > result? This wouldn't be an issue. If it's all euphoria, then, obviously, it would work the same. If it's implemented in the backend as part of the runtime, it would still use that same code, rather than simply calling a C runtime library function. Matt