Title: Change monetary amounts to BigDecimal · Issue #151 · mindee/mindee-api-java · GitHub
Open Graph Title: Change monetary amounts to BigDecimal · Issue #151 · mindee/mindee-api-java
X Title: Change monetary amounts to BigDecimal · Issue #151 · mindee/mindee-api-java
Description: Prerequisites Put an X between the brackets on this line if you have done all the following: [X ] Reproduced the problem or exposed a new need [X ] Checked the GitHub existing issues Description When working with monetary amounts in Java...
Open Graph Description: Prerequisites Put an X between the brackets on this line if you have done all the following: [X ] Reproduced the problem or exposed a new need [X ] Checked the GitHub existing issues Description Wh...
X Description: Prerequisites Put an X between the brackets on this line if you have done all the following: [X ] Reproduced the problem or exposed a new need [X ] Checked the GitHub existing issues Description Wh...
Opengraph URL: https://github.com/mindee/mindee-api-java/issues/151
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Change monetary amounts to BigDecimal","articleBody":"\u003c!--\r\n\r\nHave you read mindee-api-ruby's Code of Conduct?\r\nBy filing an Issue, you are expected to comply with it, including treating everyone with respect: [Code of Conduct](CODE_OF_CONDUCT.md)\r\n\r\nDo you want to ask a question? Are you looking for enterprise support? Get in touch via [email](contact@mindee.com)\r\n\r\n--\u003e\r\n\r\n### Prerequisites\r\n\r\nPut an X between the brackets on this line if you have done all the following:\r\n\r\n* [X ] Reproduced the problem or exposed a new need\r\n* [X ] Checked the GitHub existing issues\r\n\r\n### Description\r\n\r\nWhen working with monetary amounts in Java it is recommended to avoid the use of Long or Double as they may introduce rounding issues. BigDecimal is the recommended type for monetary amounts. Explanation can be found [here](https://adevait.com/java/java-data-types)\r\n\r\n### Steps to Reproduce\r\n\r\n**Expected behavior:**\r\n\r\nAmount values parsing to BigDecimal from Json.\r\n\r\n**Actual behavior:**\r\n\r\nDouble being used.\r\n\r\n**Reproduces how often:**\r\n\r\nEvery time as it is in all the classes.\r\n\r\n### Versions\r\n\r\nLatest\r\n\r\n","author":{"url":"https://github.com/arkhadi","@type":"Person","name":"arkhadi"},"datePublished":"2024-03-02T11:29:13.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/151/mindee-api-java/issues/151"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:dc91c125-a160-4c1c-540d-9f681c771d26 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9BBC:1FCD98:41F614:58C9F9:698EDFBC |
| html-safe-nonce | 4d4e313e7c5343dff91700b821043d90fb89c160e0575d77505b1a6fbfcf40b4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QkJDOjFGQ0Q5ODo0MUY2MTQ6NThDOUY5OjY5OEVERkJDIiwidmlzaXRvcl9pZCI6IjQ4NzU1MTk2NzUxOTc2MDMxNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 37417cd458c9c2d5158c9122836e689c9fe7f14193e55afa90cf93433c38bfb9 |
| hovercard-subject-tag | issue:2164768788 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/mindee/mindee-api-java/151/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7490e23d1fb5e5a076708e44a723e5a58f681e7d7ae32e3911959fffb0db936d/mindee/mindee-api-java/issues/151 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7490e23d1fb5e5a076708e44a723e5a58f681e7d7ae32e3911959fffb0db936d/mindee/mindee-api-java/issues/151 |
| og:image:alt | Prerequisites Put an X between the brackets on this line if you have done all the following: [X ] Reproduced the problem or exposed a new need [X ] Checked the GitHub existing issues Description Wh... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | arkhadi |
| hostname | github.com |
| expected-hostname | github.com |
| None | cb2828a801ee6b7be618f3ac76fbf55def35bbc30f053a9c41bf90210b8b72ba |
| turbo-cache-control | no-preview |
| go-import | github.com/mindee/mindee-api-java git https://github.com/mindee/mindee-api-java.git |
| octolytics-dimension-user_id | 68231970 |
| octolytics-dimension-user_login | mindee |
| octolytics-dimension-repository_id | 459186979 |
| octolytics-dimension-repository_nwo | mindee/mindee-api-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 459186979 |
| octolytics-dimension-repository_network_root_nwo | mindee/mindee-api-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e6b91a7e6e46287d26887e3fb7a4161657bab8f7 |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width