--- a/src/misc.h Fri Dec 06 00:29:44 2013 +0200 +++ b/src/misc.h Fri Dec 06 20:53:36 2013 +0200 @@ -38,6 +38,8 @@ // Simplifies the given fraction. void simplify (int& numer, int& denom); +void roundToDecimals (double& a, int decimals); + str join (initlist<StringFormatArg> vals, str delim = " "); // Grid stuff @@ -138,13 +140,6 @@ extern RingFinder g_RingFinder; -// ============================================================================= -template<class T> void dataswap (T& a, T& b) -{ T c = a; - a = b; - b = c; -} - // ----------------------------------------------------------------------------- // Plural expression template<class T> static inline const char* plural (T n)