commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Travis Hanna (Commented) (JIRA)" <>
Subject [jira] [Commented] (MATH-754) Additional Fraction Constructor
Date Mon, 27 Feb 2012 13:39:48 GMT


Travis Hanna commented on MATH-754:

That's strange.  I don't see the final declaration either when I look in SVN but I swear I
got a compile-time error when I tried to extend the class.  I'll confirm the version number
that we're using and figure out where the discrepancy comes from.  Perhaps I made an error
(accidentally imported a Fraction class from some other library, misinterpreted the error
message, etc.)

I can submit a factory class for consideration.  It seems like 3.0 development is nearing
a close though.  Should I attach another patch to this issue or would I be better off creating
a new Jira issue and marking it 3.1?  
> Additional Fraction Constructor
> -------------------------------
>                 Key: MATH-754
>                 URL:
>             Project: Commons Math
>          Issue Type: Improvement
>    Affects Versions: 3.0
>         Environment: All
>            Reporter: Travis Hanna
>            Priority: Minor
>              Labels: features, newbie, patch
>             Fix For: 3.0
>         Attachments: math.patch
> I'm writing some code which outputs fractional measurements meant for human consumption.
I need a constructor for Fraction which allows you to restrict the denominators to a finite
set. This is necessary due to the fact that real-world tools are only available with certain
fractions. For example, it's next to impossible to find a ruler with 1/7 inch marked :). 
> I'm attaching a patch which implements the functionality. I've attempted to mimic the
style of the existing code as much as possible. One caveat: I don't speak French so the french
error message is a computer-generated translation and probably very poor.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message