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 take note that modulus and remainder is not mathematically equivalent, however the "%" operator in c# is the IEEERemainder. See  https://rob.conery.io/2018/08/21/mod-and-remainder-are-not-the-same/ )
(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 [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]

Revision as of 13:18, 2 January 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 97 days ago on 02/10/2024. What links here