[
http://issues.apache.org/jira/browse/MATH-155?page=comments#action_12428966 ]
James Carman commented on MATH-155:
---
So, you basically want to translate the String representation of a number in
one base into the String representation for the
[
http://issues.apache.org/jira/browse/MATH-155?page=comments#action_12428968 ]
Chetan commented on MATH-155:
-
I am not sure how this might work for arbitrary base where base may extend
Base36(0-9 and A-Z gets used up).
So atleast the convert(Base
[
http://issues.apache.org/jira/browse/MATH-155?page=comments#action_12428969 ]
James Carman commented on MATH-155:
---
What is Base in this API example? Is that some new class? Couldn't you
represent the base using a simple integer? Also,
[
http://issues.apache.org/jira/browse/MATH-155?page=comments#action_12428971 ]
Chetan commented on MATH-155:
-
Yes,String representaion should be ok .
Something like
String (String fromBase,String toBase,String number)
For instance
if I want to
[
http://issues.apache.org/jira/browse/MATH-155?page=comments#action_12428974 ]
James Carman commented on MATH-155:
---
How about this?
String stringValue( long n, int base );
One might argue that this belongs in Commons Lang's StringUtils
[
http://issues.apache.org/jira/browse/MATH-155?page=comments#action_12428975 ]
James Carman commented on MATH-155:
---
Why not try this?
new java.math.BigInteger( 2147483647, 10 ).toString( 36 );
Wouldn't that do what you want?
Number Base
[
http://issues.apache.org/jira/browse/MATH-155?page=comments#action_12428977 ]
Chetan commented on MATH-155:
-
i guess that solves my problem.
sorry for not doing my homework and needlessly raising a new feature request.
Number Base Conversion
[
http://issues.apache.org/jira/browse/MATH-155?page=comments#action_12429080 ]
Remi Arntzen commented on MATH-155:
---
One system of radix conversion that is not currently supported by the base Java
library's and the Commons is radix conversion