Skip to content

Add decimal precision handling for amounts#407

Description

@meshackyaro

Description

Using JavaScript numbers for currency amounts causes floating-point precision errors.

Component

Backend

Difficulty

馃煛 Medium

Tasks

  • Use decimal.js or work in stroops
  • Update amount calculations
  • Add amount validation
  • Test precision edge cases
  • Document amount handling

Acceptance Criteria

  • No floating-point errors
  • Exact decimal arithmetic
  • Amount handling documented

Estimated Time

2-3 days

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions