This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug java/18550] Remainder on floating point doesn't return the expected result
- From: "olivier_thomann at ca dot ibm dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Nov 2004 19:26:45 -0000
- Subject: [Bug java/18550] Remainder on floating point doesn't return the expected result
- References: <20041118192242.18550.olivier_thomann@ca.ibm.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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