Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 28395 invoked from network); 14 Jan 2011 22:47:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 14 Jan 2011 22:47:07 -0000 Received: (qmail 33426 invoked by uid 500); 14 Jan 2011 22:47:07 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 33361 invoked by uid 500); 14 Jan 2011 22:47:06 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 33353 invoked by uid 99); 14 Jan 2011 22:47:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Jan 2011 22:47:06 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Jan 2011 22:47:06 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id p0EMkj7C022330 for ; Fri, 14 Jan 2011 22:46:45 GMT Message-ID: <19567955.378661295045205554.JavaMail.jira@thor> Date: Fri, 14 Jan 2011 17:46:45 -0500 (EST) From: "Sebb (JIRA)" To: issues@commons.apache.org Subject: [jira] Created: (MATH-479) FastMath.signum(-0.0) does not agree with Math.signum(-0.0) ; no tests for signum MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 FastMath.signum(-0.0) does not agree with Math.signum(-0.0) ; no tests for signum --------------------------------------------------------------------------------- Key: MATH-479 URL: https://issues.apache.org/jira/browse/MATH-479 Project: Commons Math Issue Type: Bug Reporter: Sebb There are no unit tests for FastMath.signum(double) as yet. Here is one that should work, but fails: {code} @Test public void testSignum() { Assert.assertTrue(Double.valueOf(FastMath.signum(+0.0)).equals(Double.valueOf(Math.signum(+0.0)))); // OK Assert.assertTrue(Double.valueOf(FastMath.signum(-0.0)).equals(Double.valueOf(Math.signum(-0.0)))); // FAILS } {code} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.