Re: remainder() is not right

new topic     » goto parent     » topic index » view thread      » older message » newer message

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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu