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