Modulus math
No edit summary
No edit summary
Line 6: Line 6:


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

Revision as of 08:22, 16 December 2022

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 100 days ago on 02/10/2024. What links here