Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 108B2DF38 for ; Mon, 11 Mar 2013 10:49:16 +0000 (UTC) Received: (qmail 11598 invoked by uid 500); 11 Mar 2013 10:49:15 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 11190 invoked by uid 500); 11 Mar 2013 10:49:15 -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 11123 invoked by uid 99); 11 Mar 2013 10:49:14 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Mar 2013 10:49:14 +0000 Date: Mon, 11 Mar 2013 10:49:14 +0000 (UTC) From: "Luc Maisonobe (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (MATH-476) FastMath code contains 'magic' numbers, e.g. (-)4503599627370496.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/MATH-476?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Luc Maisonobe resolved MATH-476. -------------------------------- Resolution: Fixed Declaring as resolved as per comments above. > FastMath code contains 'magic' numbers, e.g. (-)4503599627370496.0 > ------------------------------------------------------------------ > > Key: MATH-476 > URL: https://issues.apache.org/jira/browse/MATH-476 > Project: Commons Math > Issue Type: Improvement > Affects Versions: 2.2 > Reporter: Sebb > Priority: Minor > Fix For: 3.2 > > > The FastMath class contains quite a few 'magic' numbers, not all of which are explained/documented. > For example, how is the number (-)4503599627370496.0 calculated? > IMO, all magic numbers should be replaced by constants with a descriptive name and explanatory Javadoc. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira