[math] Replace simple rounding with boost::math::round().

Due to a recent fix in Boost.Math for corner cases.
PR: https://github.com/boostorg/math/pull/8
Commit: https://github.com/boostorg/math/commit/fb835eb02919fc0b0385e450b344de61889632dc