And we can't use the trunc from <cmath> since it is C99 only (won't work on windows)
@springmeyer - we can use boost::math::trunc on windows or implement out own trunc.
@artemp - thanks, currently seeing compiles work with boost::math::trunc on windows, will report back if tests run okay.
fix compile on windows with msvc 2010 - closes #1646
@springmeyer - couple issues with implementation:
k, thanks, we should add those to the C++ tests.
ah, now I get why I couldn't reproduce the problem with 0 and <0, it took boost::math::trunc to do that !
It's enough to add a check for 0.0 and use abs(n) in the precision() function to fix those cases.
removed unused trunc and cmath headers - closes #1646