Is there any differences between Math.IEEERemainder(x,y) and x%y ?
.net – Is Math.IEEERemainder(x,y) equivalent to x%y
.net
Related Question
- C# – Deep cloning objects
- C# – How to enumerate an enum
- C# – Should ‘using’ directives be inside or outside the namespace
- C# – Catch multiple exceptions at once
- C# – What are the correct version numbers for C#
- C# – How to get a consistent byte representation of strings in C# without manually specifying an encoding
- .net – In WPF, what are the differences between the x:Name and Name attributes
- .net – Difference between decimal, float and double in .NET
Best Solution
No, they are not equivalent. MSDN shows the different formulas used for modulo and for IEEERemainder and has a short sample program exhibiting the differences:
Some examples where they have different/identical output (taken from MSDN):
See also this good answer by sixlettervariables on a similar question.