PR: 35904 Changed rounding methods to not rely on BigDecimal conversions which was causing numerical error.