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 6F57C102EB for ; Mon, 23 Dec 2013 00:34:50 +0000 (UTC) Received: (qmail 17178 invoked by uid 500); 23 Dec 2013 00:34:50 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 17108 invoked by uid 500); 23 Dec 2013 00:34:50 -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 17099 invoked by uid 99); 23 Dec 2013 00:34:50 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Dec 2013 00:34:50 +0000 Date: Mon, 23 Dec 2013 00:34:50 +0000 (UTC) From: "Andrew Brampton (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (MATH-1083) Fraction - Allow zero denominator if numerator is also zero MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Andrew Brampton created MATH-1083: ------------------------------------- Summary: Fraction - Allow zero denominator if numerator is also zero Key: MATH-1083 URL: https://issues.apache.org/jira/browse/MATH-1083 Project: Commons Math Issue Type: Improvement Affects Versions: 3.1 Reporter: Andrew Brampton Priority: Minor The Fraction constructor rejects a denominator of zero. However, while trying to parse some Strings generated by another program, I encountered a fraction "0/0". I would say that's ambigous as to if that's valid, but some people would agree the answer is zero. So, would it be possible to allow a zero denominator if the numerator is also zero. I'd be happy to provide a patch. -- This message was sent by Atlassian JIRA (v6.1.5#6160)