royNiladri / js-big-decimal

Work with large numbers on the client side with high precision.
https://www.npmjs.com/package/js-big-decimal
MIT License
156 stars 28 forks source link

How to calculate the remainder? I didn't find the divideandremainder () method #32

Closed 1171736840 closed 4 years ago

1171736840 commented 4 years ago

How to calculate the remainder? I didn't find the divideandremainder () method

royNiladri commented 4 years ago

It has not been implemented yet. Will take it up in the future. As a workaround (for now) you can do something like:

a - b*round(a/b)

Using the bigdecimal functions for.

royNiladri commented 4 years ago

@1171736840 The feature has been added to the new release. Please validate and let know.