[Oberon] Modulus on negative number
joerg.straube at iaeth.ch
Wed Feb 15 07:18:36 CET 2017
Positive, as defined in chapter 8.2.2 in
> Am 15.02.2017 um 04:21 schrieb Srinivas Nayak <sinu.nayak2001 at gmail.com>:
> Dear All,
> Recently I come across modulus on a negative number.
> Will it produce a negative number or positive?
> Someone says both are correct! http://stackoverflow.com/a/4403556
> Which one is mathematically correct?
> Surprisingly different languages calculate it differently even!
> What is Oberon's way?
> With thanks and best regards,
> Yours sincerely,
> Srinivas Nayak
> Home: http://www.mathmeth.com/sn/
> Blog: http://srinivas-nayak.blogspot.in/
> Oberon at lists.inf.ethz.ch mailing list for ETH Oberon and related systems
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Oberon