[Oberon] Modulus on negative number

Srinivas Nayak sinu.nayak2001 at gmail.com
Wed Feb 15 04:21:21 CET 2017

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/

More information about the Oberon mailing list