From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12802 invoked by alias); 18 Nov 2004 19:26:45 -0000 Mailing-List: contact java-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-prs-owner@gcc.gnu.org Received: (qmail 12787 invoked by uid 48); 18 Nov 2004 19:26:45 -0000 Date: Thu, 18 Nov 2004 19:26:00 -0000 Message-ID: <20041118192645.12785.qmail@sourceware.org> From: "olivier_thomann at ca dot ibm dot com" To: java-prs@gcc.gnu.org In-Reply-To: <20041118192242.18550.olivier_thomann@ca.ibm.com> References: <20041118192242.18550.olivier_thomann@ca.ibm.com> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug java/18550] Remainder on floating point doesn't return the expected result X-Bugzilla-Reason: CC X-SW-Source: 2004-q4/txt/msg00389.txt.bz2 List-Id: ------- 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