Peter Olson

Results 37 comments of Peter Olson
trafficstars

BigInteger.js uses CommonJS `module.exports`. Does your build system not support that?

I haven't looked at it carefully yet, but my guess is that the performance difference comes from parsing hex input. From what I understand, jsbn internally uses base representation that...

My guess is that this is due to some features this library has that other libraries might not have, such as bitwise functions, base conversion, and automatic fallback to the...

Good point @Yaffle, that makes me realize that the `alphabet` argument isn't working for base 10 either. I should add more tests for the `toString` method with the `alphabet` argument

Thanks, feel free to submit a pull request.

Can you give an example of the operation that you want to do and the output that you expect?

If someone wants to add a pull request for this feature I'll merge it in.

Logarithms are not integer operations, I'm not sure they fit the scope of this library.

I'm not sure that anybody's taken the effort to create them yet, since BigRational isn't as popular as BigInteger.

This seems like two unnecessary steps to me. Why do you need to involve JSON.stringify or JSON.parse here? You can just use bigRat(bigRat().toString())