Does anybody know what the C# equivalent of fmod is? I'm trying to convert this line of code to C#.
$lon_rad = fmod(($long1+$dlon_rad + M_PI), 2*M_PI) - M_PI;
Here's what I have so far. I just need the fmod converted.
double lon_rad = ((lon1+dlon_rad + Math.PI), 2*Math.PI) - Math.PI;