JDK-8276838 : Introduce a constant BigDecimal.ONE_HUNDRED
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.math
  • Affected Version: 17
  • Priority: P4
  • Status: New
  • Resolution: Unresolved
  • OS: generic
  • CPU: generic
  • Submitted: 2021-11-08
  • Updated: 2021-11-09
Related Reports
Relates :  
Description
A DESCRIPTION OF THE PROBLEM :
When working with percentages, i often have the percentage like 17
and i have to divide it by 100 ((17 % becomes 0.17) to do calculations with the percentage.
It would be handy to have a constant BigDecimal.ONE_HUNDRED to do this division.



Comments
Moved to JDK to get more evaluations.
09-11-2021