Fw: Question about JEP 306.
A Z
poweruserm at live.com.au
Wed Dec 6 01:02:05 UTC 2017
-I have been wondering what interest, focus or progress
is happening around OpenJDK JEP 306:
http://openjdk.java.net/jeps/306
-As a Java feature request, could I request feature 306?
Underflow and overflow need to be eliminated
from double and float.
There could be an associativefp option. It should also be the case
that there should be a round half up for the decimal place
beyond the last one in the float or double range, to help support
all notions of
(pow(sqrt(3),2) == 3) //true
-The other thing that there should be is a StrictMath
that works for BigInteger and BigDecimal, allowing:
pow(BigDecimal,BigDecimal)
pi(...)
e(...)
sin(Bigdecimal)
asin(Bigdecimal) ...
which would allow for any power at all, as well as the nth root.
It is also a good idea to include a radians and degrees version
of all the trig functions.
More information about the hotspot-dev
mailing list