[GH-ISSUE #1097] [Bug]: Using math in Payment or Deposit fields sometimes inaccurate #26217

Closed
opened 2026-04-18 02:17:11 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @bstritesky on GitHub (Jun 2, 2023).
Original GitHub issue: https://github.com/actualbudget/actual/issues/1097

Verified issue does not already exist?

  • I have searched and found no existing issue

What happened?

In a split transaction, I often use math in the Payment and Deposit fields to calculate things like tax, so I put in the split item amount before tax and enter *1.07875 for our tax rate.

When I enter 6.78*1.07875, I get this value: 731,392.50
When I enter 6.78*1.0787, I get this value: 73,135.86
When I enter 6.78*1.078, I get this value: 7,308.84
When I enter 6.78*1.07, I get this value: 6.42

This makes me think that the math doesn't handle more than 3 decimal places properly.

In my settings, I am using the Numbers format "1,000.33" and Hide decimal places is unchecked.

What error did you receive?

No response

Where are you hosting Actual?

Docker

What browsers are you seeing the problem on?

Chrome

Operating System

Mac OSX

Originally created by @bstritesky on GitHub (Jun 2, 2023). Original GitHub issue: https://github.com/actualbudget/actual/issues/1097 ### Verified issue does not already exist? - [X] I have searched and found no existing issue ### What happened? In a split transaction, I often use math in the Payment and Deposit fields to calculate things like tax, so I put in the split item amount before tax and enter *1.07875 for our tax rate. When I enter `6.78*1.07875`, I get this value: 731,392.50 When I enter `6.78*1.0787`, I get this value: 73,135.86 When I enter `6.78*1.078`, I get this value: 7,308.84 When I enter `6.78*1.07`, I get this value: 6.42 This makes me think that the math doesn't handle more than 3 decimal places properly. In my settings, I am using the Numbers format "1,000.33" and Hide decimal places is unchecked. ### What error did you receive? _No response_ ### Where are you hosting Actual? Docker ### What browsers are you seeing the problem on? Chrome ### Operating System Mac OSX
GiteaMirror added the regressionbug labels 2026-04-18 02:17:11 -05:00
Author
Owner

@j-f1 commented on GitHub (Jun 3, 2023):

This is a result of https://github.com/actualbudget/actual/pull/1029, which was intended to make number parsing format style agnostic. (fyi @chylex). This is definitely an important use case we should support, not sure how best to balance parsing different number styles with handling non-currency amounts here.

<!-- gh-comment-id:1574571051 --> @j-f1 commented on GitHub (Jun 3, 2023): This is a result of https://github.com/actualbudget/actual/pull/1029, which was intended to make number parsing format style agnostic. (fyi @chylex). This is definitely an important use case we should support, not sure how best to balance parsing different number styles with handling non-currency amounts here.
Author
Owner

@j-f1 commented on GitHub (Jun 16, 2023):

Just reverted this change in #1144, so the next release should go back to the old behavior.

<!-- gh-comment-id:1595190616 --> @j-f1 commented on GitHub (Jun 16, 2023): Just reverted this change in #1144, so the next release should go back to the old behavior.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#26217