replaced ::round missing in pre-C99 with boost::math::round