1 #ifndef SCX_ROUNDOFF_HPP
2 #define SCX_ROUNDOFF_HPP
10 static inline double RoundOff(double num
, int n
)
12 int scale
= pow((double)10, n
);
13 num
+= 0.5 * pow((double)0.1, n
);
21 static inline bool IsOdd(T n
)
27 static inline bool IsEven(T n
)
34 static inline bool Is2Exp(T n
)
40 static inline bool Not2Exp(T n
)