This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug java/18550] Remainder on floating point doesn't return the expected result


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]