[PR #2399] Update csv amount parser. Fix #2374 #4284

Closed
opened 2026-02-28 20:54:02 -06:00 by GiteaMirror · 0 comments
Owner

Original Pull Request: https://github.com/actualbudget/actual/pull/2399

State: closed
Merged: Yes


Attempt to fix #2374.

This puts a strict limit to 1 or 2 decimal places. The test is complaining because there is one that passes in three decimal places. Are there regions where decimal amounts have more than 2 digits? If so then this bug is unfixable without a major overhaul of the parsing to have a known data format, where currently the parsing is format agnostic.

Looks like there are a few places that have 3 decimal places for financial data, mostly in the middle east. Im not sure there is a way to fix the issue without blocking potential users from those countries. Does anyone else have ideas on how to parse the csv in the issue without limiting to 2 decimal places?

**Original Pull Request:** https://github.com/actualbudget/actual/pull/2399 **State:** closed **Merged:** Yes --- Attempt to fix #2374. This puts a strict limit to 1 or 2 decimal places. The test is complaining because there is one that passes in three decimal places. Are there regions where decimal amounts have more than 2 digits? If so then this bug is unfixable without a major overhaul of the parsing to have a known data format, where currently the parsing is format agnostic. Looks like there are a few places that have 3 decimal places for financial data, mostly in the middle east. Im not sure there is a way to fix the issue without blocking potential users from those countries. Does anyone else have ideas on how to parse the csv in the issue without limiting to 2 decimal places?
GiteaMirror added the pull-request label 2026-02-28 20:54:02 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#4284