Modulus math
This page was created by Hans.karlsen@mdriven.net on 2021-12-04. Last edited by Edgar on 2025-01-20.

In c# you do 5%3 to get the rest of the division 5/3

In ocl you can do 5.IEEERemainder( 3 )

(please take note that modulus and remainder is not mathematically equivalent. See https://rob.conery.io/2018/08/21/mod-and-remainder-are-not-the-same/ )

See IEEERemainder documentation in .net