src/base/misc.hh
inline double modulus(double a, double b)
	{
		if (a < 0) return a - static_cast<int>(a / b - 1) * b;
		else return a - static_cast<int>(a / b) * b;
	}
/*!
	 * calculates the a mod b, where a and b are double floats.
	 */
calculates the a mod b, where a and b are double floats.
calculates the a mod b where a and b are double floats .
inline double modulus(double a, double b)
	{
		if (a < 0) return a - static_cast<int>(a / b - 1) * b;
		else return a - static_cast<int>(a / b) * b;
	}
inline double modulus ( double a , double b ) { if ( a < 0 ) return a - static_cast < int > ( a / b - 1 ) * b ; else return a - static_cast < int > ( a / b ) * b ; }
calculates the a mod b, where a and b are double floats.
calculates the a mod b where a and b are double floats .