Re: Java floating point and StrictMath improvement?

2022-03-16 Thread Andrew Dinn
On 16/03/2022 09:56, Raffaello Giulietti wrote: "Computer scientists of the world, unite! Let's get rid of binary floating-point arithmetic in Java, after 27 years of honorable service! Let's adopt decimal floating-point arithmetic, where 1 / 3 + 1 / 3 is still different from 2 / 3, but who

Re: Java floating point and StrictMath improvement?

2022-03-16 Thread Raffaello Giulietti
"Computer scientists of the world, unite! Let's get rid of binary floating-point arithmetic in Java, after 27 years of honorable service! Let's adopt decimal floating-point arithmetic, where 1 / 3 + 1 / 3 is still different from 2 / 3, but who cares? At least we have 0.1 * 0.1 = 0.01, as

Java floating point and StrictMath improvement?

2022-03-15 Thread A Z
To core-libs-dev@openjdk.java.net, float and double should be mutually enhanced or defaultedly changed, to uphold the following three properties: 1) Base ten arithmetic on float and double, via operators. 2) Base Ten elementary function calls, like those made on java.lang.StrictMath, on