Skip to content
New issue

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

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

Closed
1171736840 opened this issue Aug 9, 2020 · 2 comments

Comments

@1171736840
Copy link

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

@royNiladri
Copy link
Owner

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 added a commit that referenced this issue Aug 16, 2020
royNiladri added a commit that referenced this issue Aug 16, 2020
* Added modulus feature #32
* Added code coverage
@royNiladri
Copy link
Owner

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

royNiladri pushed a commit that referenced this issue Feb 10, 2023
royNiladri added a commit that referenced this issue Feb 11, 2023
* Bugfix #84 fixed buggy round

* 1.3.11

* 1.3.12

* bugfix #63: fix addition of -0

* build files

* 1.3.13

* added devcontainer

* changed gulpfile for macos

* added feature 'abs' #83

* 1.3.14

* added abs to readme

* 1.3.15

* semantic dependency updates

* Add feature for #32 setValue

* 1.4.0

* Merge branch 'master' of https://github.com/royNiladri/js-big-decimal into development

* upadted packagelock

* 1.4.1

---------

Co-authored-by: Niladri Roy <[email protected]>
royNiladri added a commit that referenced this issue Aug 2, 2023
* Bugfix #84 fixed buggy round

* 1.3.11

* 1.3.12

* bugfix #63: fix addition of -0

* build files

* 1.3.13

* added devcontainer

* changed gulpfile for macos

* added feature 'abs' #83

* 1.3.14

* added abs to readme

* 1.3.15

* semantic dependency updates

* Add feature for #32 setValue

* 1.4.0

* Merge branch 'master' of https://github.com/royNiladri/js-big-decimal into development

* upadted packagelock

* 1.4.1

* Add an ESM compatible build to grunt script via Rollup (#99)

* add rollup dev dependencies

* change export mechanism...

This does not change the `dist` command's current outputs

* add rollup es module bundling to grunt dist task

* Fix typo

* add "module" esm target file

* add built esm outputs

* fixed tests for esm

* 2.0.0

---------

Co-authored-by: Niladri Roy <[email protected]>
Co-authored-by: Colin Kennedy <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants