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

Possible rounding issue in the amount value #39

Open
abfa-odoo opened this issue Feb 8, 2024 · 0 comments
Open

Possible rounding issue in the amount value #39

abfa-odoo opened this issue Feb 8, 2024 · 0 comments

Comments

@abfa-odoo
Copy link

When I am initializing the form using Moyasar.init() I pass the amount in Halala (1.15 SAR to 115 Halala) but when the amount is converted back to SAR it is 1.14.

image

If I use 100 Halal it is converted correctly to 1.00 SAR.

image

I tried with other values, sometimes if there is a decimal like 1.15, 2.25, etc. there is a difference of 0.01. This behavior is not true with all the values, only some of them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant