Modulus math

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

This page was edited 96 days ago on 02/10/2024. What links here