[Bug java/18550] Remainder on floating point doesn't return the expected result
olivier_thomann at ca dot ibm dot com
gcc-bugzilla@gcc.gnu.org
Thu Nov 18 19:26:00 GMT 2004
------- Additional Comments From olivier_thomann at ca dot ibm dot com 2004-11-18 19:26 -------
Sorry, my test case was wrong. Here is the right one:
public class X {
public static void main(String args[]) {
System.out.println(3.14f % Float.POSITIVE_INFINITY);
}
}
I expect the output to be: 3.14, but instead I get NaN.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18550
More information about the Gcc-bugs
mailing list