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
Hi, thanks for creating node-bignum, I've started using it today and I'm already loving it! 😀
I'd like to suggest creating a remainder operation as it can be really useful sometimes. Currently I'm doing the below:
// Big num remainder (not very performant)functionremainder(dividend,divisor,quotient){if(!quotient){quotient=dividend.div(divisor);}returndividend.sub(quotient.mul(divisor));}
which I don't consider ideal by any means. Let me know what you think about the feature or even about a better existing way to get the remainder. Thanks!
The text was updated successfully, but these errors were encountered:
Hi, thanks for creating node-bignum, I've started using it today and I'm already loving it! 😀
I'd like to suggest creating a
remainder
operation as it can be really useful sometimes. Currently I'm doing the below:which I don't consider ideal by any means. Let me know what you think about the feature or even about a better existing way to get the remainder. Thanks!
The text was updated successfully, but these errors were encountered: