We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BN
Currently, the only type of exponentiation supported, is for raising a BN object to the power of a a BN object.
Every other binary operation supports the 2nd operand being both a BN object and a plain JavaScript Number:
bn1.add(bn2)
bn.addn(num)
bn1.sub(bn2)
bn.subn(num)
bn1.mul(bn2)
bn.muln(num)
bn1.div(bn2)
bn.divn(num)
bn1.mod(bn2)
bn.modn(num)
So it seems a bit odd that function pow is provided, but function pown is not provided.
pow
pown
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Currently, the only type of exponentiation supported, is for raising a
BN
object to the power of a aBN
object.Every other binary operation supports the 2nd operand being both a
BN
object and a plain JavaScript Number:bn1.add(bn2)
andbn.addn(num)
bn1.sub(bn2)
andbn.subn(num)
bn1.mul(bn2)
andbn.muln(num)
bn1.div(bn2)
andbn.divn(num)
bn1.mod(bn2)
andbn.modn(num)
So it seems a bit odd that function
pow
is provided, but functionpown
is not provided.The text was updated successfully, but these errors were encountered: