You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Travis Hanna (Updated) (JIRA)" <ji...@apache.org> on 2012/02/26 14:42:49 UTC
[jira] [Updated] (AXIS2-5252) Additional Fraction Constructor
[ https://issues.apache.org/jira/browse/AXIS2-5252?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Travis Hanna updated AXIS2-5252:
--------------------------------
Attachment: math.patch
Patch which adds new constructor to Fraction. Includes unit test and new error message. French error message should be reviewed by a native French speaker. It's machine generated.
> Additional Fraction Constructor
> -------------------------------
>
> Key: AXIS2-5252
> URL: https://issues.apache.org/jira/browse/AXIS2-5252
> Project: Axis2
> Issue Type: Improvement
> Environment: All
> Reporter: Travis Hanna
> Priority: Minor
> Labels: features, newbie, patch
> Attachments: math.patch
>
>
> I'm writing some code who's output includes 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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org