-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
The result of dividing two Decimal128 stored on Atlas backend is wrong. #7868
Comments
Hi @horatiu1921 I do have a reproductions case for this
Data seems to be stored correctly on the database, but data sent to the server doesn't coincide with the one from the realm. |
@dianaafanador3 I will create a core test for it and have a look to see if there is something wrong in the sync client. |
@danieltabacaru any luck with a test for this? |
@dianaafanador3 yes, I can reproduce it in core. We'll take it from here. |
Excellent! Looking forward for a fix! |
Was this issue addressed? |
We've been having trouble getting the core release with the fix out and are still working on that. |
How frequently does the bug occur?
All the time
Description
I am having a strange issue when dividing two Decimal128 values. The result on device and printed on console is ok but the value synced to Atlas backend is wrong. I believe it is related to the significant digits.
I have this two values:
The value stored on server is:
12.29721490089025582478677982706510
.On the device where the operation is made, everything is ok but, on other synced devices, all the results are wrong.
Stacktrace & log output
No response
Can you reproduce the bug?
Yes, always
Reproduction Steps
No response
Version
10.28.1
What SDK flavour are you using?
MongoDB Realm (i.e. Sync, auth, functions)
Are you using encryption?
Yes, using encryption
Platform OS and version(s)
iOS 15.5
Build environment
Xcode version: 13.4.1
The text was updated successfully, but these errors were encountered: