[Oberon] Modulus on negative number

Douglas G Danforth danforth at greenwoodfarm.com
Wed Feb 15 05:03:28 CET 2017

 From the Component Pascal's Language definition we find

-Doug Danforth

On 2/14/2017 7:21 PM, Srinivas Nayak wrote:
> 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

Danforth of the Greenwood
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.inf.ethz.ch/pipermail/oberon/attachments/20170214/d5c3e505/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hciggcejehjgnacc.png
Type: image/png
Size: 6934 bytes
Desc: not available
URL: <http://lists.inf.ethz.ch/pipermail/oberon/attachments/20170214/d5c3e505/attachment.png>

More information about the Oberon mailing list