[ http://issues.apache.org/jira/browse/MATH-155?page=all ]
James Carman closed MATH-155.
-----------------------------
Resolution: Won't Fix
Assignee: James Carman
This functionality is provided by the core JDK's java.math.BigDecimal API. It
would be trivial to create a "helper" method that looks like this:
public String convert( String value, int originalBase, int targetBase )
{
return new java.math.BigDecimal( value, originalBase ).toString( targetBase );
}
> Number Base Conversion
> ----------------------
>
> Key: MATH-155
> URL: http://issues.apache.org/jira/browse/MATH-155
> Project: Commons Math
> Issue Type: New Feature
> Affects Versions: 1.2 Final
> Environment: NA
> Reporter: Chetan
> Assigned To: James Carman
>
> I think a maths package without a base conversion utility is quite incomplete.
> Would request you to include this feature in the package for the next release.
> From a user's perspective I would like to have a library that goes beyond the
> usual binary,octal,hexadecimal conversions.
> Would really be helpful if the library is very generic so as to support
> convert(Base from,Base to) calls.
> Pls let me know what you feel about this.Currently i am on the lookout for a
> base conversion class etc but haven't managed to hit upon anything that
> serves my purpose.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]