A DESCRIPTION OF THE REQUEST :
Although this relates back to floating point flow errors, it needs to be the case that for float and double values, the digit beyond the final smallest decimal value needs to be rounded up at 0.xxxxxx5 and carried forward if needed, so that operational and inverse functions remain accurate.
JUSTIFICATION :
So that equality tests, == or !=, as well as object tests,
.equals(), will successfully and appropriately detect results
to be where mathematics should be.
To enhance the mathematical accuracy and quality of any java program.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
(pow(sqrt(2),2) == 2) //true
(toDegrees(asin(sin(toRadians(30))))==30) //true.
Although this relates back to floating point flow errors, it needs to be the case that for float and double values, the digit beyond the final smallest decimal value needs to be rounded up at 0.xxxxxx5 and carried forward if needed, so that operational and inverse functions remain accurate.
JUSTIFICATION :
So that equality tests, == or !=, as well as object tests,
.equals(), will successfully and appropriately detect results
to be where mathematics should be.
To enhance the mathematical accuracy and quality of any java program.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
(pow(sqrt(2),2) == 2) //true
(toDegrees(asin(sin(toRadians(30))))==30) //true.
- relates to
-
JDK-8190946 There is no elementary functions support for BigDecimal and BigInteger.
- Closed