tags:

views:

116

answers:

2

What represents Math.IEEERemainder(x,y) in C++?

+5  A: 

Try the fmod function.

SLaks
+1. Answers to the effect of "use the modulus operator" miss the point that modulus is not the same operation as fmod.
John Feminella
It takes 18 characters to express in C# what C++ can say in four. It's like an allegory.
Crashworks
@Crashworks: Indeed. C# uses 18 characters to clearly express intent, while C++ mumbles what sounds like a curse.
Michael Petrotta
Except that `Remainder` expresses what the function does much better than `fmod`. EDIT: Ninja'd by Michael.
GMan