Skip to content

Conversation

henu
Copy link

@henu henu commented Feb 12, 2025

How about storing price as BigDecimal? It's perfect type for price information, as you can avoid floating point rounding errors and have as many decimal places as you want.

I'm not an expert in developing Java libraries, so please suggest how to make this PR better!

I'm only able to test it with Android Google payments.

@henu henu force-pushed the price_in_bigdecimal branch from f8fa1e7 to b3ddb99 Compare February 12, 2025 23:23
@henu
Copy link
Author

henu commented Feb 12, 2025

Automatic tests found some problems. Now they are fixed, and waiting for new run...

@henu henu force-pushed the price_in_bigdecimal branch from b3ddb99 to d2f7ed4 Compare February 13, 2025 09:17
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

Successfully merging this pull request may close these issues.

1 participant