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 0DEE2CAF5 for ; Mon, 24 Jun 2013 17:22:31 +0000 (UTC) Received: (qmail 81950 invoked by uid 500); 24 Jun 2013 17:22:30 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 81544 invoked by uid 500); 24 Jun 2013 17:22:22 -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 81284 invoked by uid 99); 24 Jun 2013 17:22:20 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Jun 2013 17:22:20 +0000 Date: Mon, 24 Jun 2013 17:22:19 +0000 (UTC) From: "Tim Allison (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (MATH-996) Fraction specified with maxDenominator and a value very close to a simple fraction should not throw an overflow exception MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Tim Allison created MATH-996: -------------------------------- Summary: Fraction specified with maxDenominator and a value very close to a simple fraction should not throw an overflow exception Key: MATH-996 URL: https://issues.apache.org/jira/browse/MATH-996 Project: Commons Math Issue Type: Bug Affects Versions: 3.1.1 Reporter: Tim Allison Priority: Minor An overflow exception is thrown when a Fraction is initialized with a maxDenominator from a double that is very close to a simple fraction. For example: double d = 0.5000000001; Fraction f = new Fraction(d, 10); Patch with unit test on way. -- 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