Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Change monetary amounts to BigDecimal #151

Copy link
Copy link
@arkhadi

Description

@arkhadi
Issue body actions

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 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

Steps to Reproduce

Expected behavior:

Amount values parsing to BigDecimal from Json.

Actual behavior:

Double being used.

Reproduces how often:

Every time as it is in all the classes.

Versions

Latest

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.