How to compute fmod in C#?

Posted by Danvil on Stack Overflow See other posts from Stack Overflow or by Danvil
Published on 2010-04-22T11:54:48Z Indexed on 2010/04/22 12:03 UTC
Read the original article Hit count: 380

Filed under:
|

For given floating point numbers x and a, I would like to compute r (and n) such that x = a*n + r . In C/C++ this function is called fmod. However I do not see a convenient function in .NET. Math.DivRem is only for integers ...

© Stack Overflow or respective owner

Related posts about c#

Related posts about math