sky76093016 opened a new pull request #2405: URL: https://github.com/apache/ozone/pull/2405
## What changes were proposed in this pull request? Because of floating point imprecision, you’re unlikely to get the value you expect from the `BigDecimal(double)` constructor. Instead, you should use `BigDecimal.valueOf`, which uses a string under the covers to eliminate floating point rounding errors. ## What is the link to the Apache JIRA https://issues.apache.org/jira/projects/HDDS/issues/HDDS-5428 ## How was this patch tested? No need. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
