Removed references to std::round to fix compatibility issues with MSVC.