fixed windows build and added new test to vc++ project

This commit is contained in:
Mark Vejvoda
2013-06-10 23:08:03 +00:00
parent 16f4e08395
commit d067b52799
3 changed files with 3 additions and 1 deletions

View File

@@ -330,7 +330,7 @@ inline T truncateDecimal(const T &value, int precision=6) {
return result;
*/
T precNum = pow(10, precision);
T precNum = std::pow((T)10, (T)precision);
T result = xs_CRoundToInt(value * precNum);
result /= precNum;
return result;