updated rounding code to ensure correct values are displayed on tooltip