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

Fix double precision issue and inconsistent return type on Android #885

Merged
merged 2 commits into from
Dec 27, 2019

Conversation

denkeni
Copy link
Contributor

@denkeni denkeni commented Dec 25, 2019

  1. Fix double precision issue when doing calculations with large numbers. In our case, priceAmountMicros can be 3290000000, and priceAmountMicros / 1000000f will give incorrect value 3289.999755859375 (3290 is expected).
  2. Fix inconsistent return type. On documentation and iOS implementation, all properties of Product are String types. Earlier implementation on Android gives Double type.

We also update documentation of price and localizedPrice to make it clearer.

Copy link
Member

@hyochan hyochan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approve this Pull Request 🎉

@hyochan hyochan added 🤖 android Related to android 🍗 enhancement New feature or request labels Dec 27, 2019
@hyochan hyochan merged commit 34527fc into dooboolab-community:master Dec 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤖 android Related to android 🍗 enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants