[graalvm-users] Question about GraalVM, Java 17 and Floating Point Arithmetic.
A Z
poweruserm at live.com.au
Fri Nov 19 05:27:09 UTC 2021
Dear GraalVM,
I would like to know how GraalVM Java performs.
-Is it compatible with Free Open Source Java libraries,
or other Java libraries, out there?
-Has GraalVM removed the phenomenon of Java
Floating Point denormal and pronormal values?
Consider the following Java code snippet:
**//----------------------------------------------------------
package JavaApplication;
import static java.lang.System.*;
public class Start
{
public static void main(String ...args)
{
out.println("Program has started...");
double a = 0.1;
double b = 0.1;
double c = a*b;
out.println();
out.println(c);
out.println();
out.println(c == 0.01);
float d = 0.01F;
float e = 0.01F;
float f = d*e;
out.println();
out.println(f);
out.println();
out.println(f == 0.01);
out.println();
out.println("Program has Finished.");
}}
//----------------------------------------------------------**
-What I need is a version of Java 17 that has the same
free-for-all-use license model as OpenJDK17, but has
removed the phenomenon of denormal and pronormal
values, of all defaulting arithmetic, systematically,
involving float and double, and their objects.
-Will GraalVM run the included code fragment,
outputting the generally expected results,
printing true and not false?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://oss.oracle.com/pipermail/graalvm-users/attachments/20211119/0a81d48a/attachment.html>
More information about the GraalVM-Users
mailing list