Modulus math
No edit summary
No edit summary
Line 3: Line 3:
In OCL, you can do 5.IEEERemainder( 3 )
In OCL, you can do 5.IEEERemainder( 3 )


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


See: [https://docs.microsoft.com/en-us/dotnet/api/system.math.ieeeremainder IEEERemainder documentation in .net]
See also: [https://docs.microsoft.com/en-us/dotnet/api/system.math.ieeeremainder IEEERemainder documentation in .net]
[[Category:OCL]]
[[Category:OCL]]
[[Category:C-Sharp]]
[[Category:C-Sharp]]

Revision as of 07:29, 13 March 2023

In C#, do 5%3 to get the rest of the division 5/3.

In OCL, you can do 5.IEEERemainder( 3 )

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

See also: IEEERemainder documentation in .net

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