[Oberon] Modulus on negative number

Jörg Straube joerg.straube at iaeth.ch
Wed Feb 15 07:18:36 CET 2017


Positive, as defined in chapter 8.2.2 in
https://www.inf.ethz.ch/personal/wirth/Oberon/Oberon07.Report.pdf

br
Jörg

> 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
> https://lists.inf.ethz.ch/mailman/listinfo/oberon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.inf.ethz.ch/pipermail/oberon/attachments/20170215/63b28e7b/attachment.html>


More information about the Oberon mailing list