BigInt
BigInt copied to clipboard
Add support for hexadecimal string in constructor
I think it will be useful for the BigInt to take hex as input and represent it as BigInt and support all the operations? Let me know what you think of it and I can start working on it.
@prateekroy I don't see how it would be useful. Can you give a few examples?
@faheel I was thinking of something like this BigInt("0xFFABFF") and support all the operations for this BigInt.
BigInt("0xA") + BigInt("1") = "0xB".
@prateekroy Seems like a useful feature to have for some use cases.
If anyone's interested in taking up this issue then feel free to create a PR
When to expect this feature?
I would like to have a feature to read a byte array into a BigNum, I'm using this library to get big num data from a server. If I end up doing it myself, but It could be nice to have it in the library.
i recomendet use gmp wraper for C++ https://github.com/QuasarApp/QtBigInt
Sorry for the long delay in looking into this feature. Looks like multiple people are interested in it, so I'll take a look at the PR once I get more time.
Hey is it ok if I look into this feature?
Handling many bases is better in my opinion