You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
The calculator app I've written (not currently using this library, but I'm certainly considering it) currently works in bases 10 and 12, and I'm considering adding support for base 16.
BigDecimal is (as the name says) only for base 10, not allowing me to pass in a radix.
Describe the solution you'd like
A BigNumber class or similar where the radix can be specified would be ideal. BigDecimal could possibly remain as a specialisation of a big number for base 10, but any radix-independent methods could be moved to the superclass.
Describe alternatives you've considered
a. do all the maths in decimal and convert each way. I'd get rounding errors here and there, but it can't be any worse than using double precision.
b. make my own BigRational or BigNumber utilities, possibly building on top of BigInteger.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
The calculator app I've written (not currently using this library, but I'm certainly considering it) currently works in bases 10 and 12, and I'm considering adding support for base 16.
BigDecimal
is (as the name says) only for base 10, not allowing me to pass in a radix.Describe the solution you'd like
A
BigNumber
class or similar where the radix can be specified would be ideal.BigDecimal
could possibly remain as a specialisation of a big number for base 10, but any radix-independent methods could be moved to the superclass.Describe alternatives you've considered
a. do all the maths in decimal and convert each way. I'd get rounding errors here and there, but it can't be any worse than using double precision.
b. make my own
BigRational
orBigNumber
utilities, possibly building on top ofBigInteger
.The text was updated successfully, but these errors were encountered: