Body: <p>I have products that cost $10, including a 7% value-added tax. In the price set, I enter 9.345794393 accordingly <a href="https://lab.civicrm.org/dev/core/-/issues/1603" rel="nofollow noreferrer">https://lab.civicrm.org/dev/core/-/issues/1603</a>, and I include the tax in the contribution type. I thought that CiviCRM had been calculating correctly recently, but it's not doing so anymore. During the initial calculation on dmaster, $20 is correctly displayed, but it's saving as $19.99.</p>
  <p>Calculation while typing: <a href="https://i.sstatic.net/iMNQ9.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/iMNQ9.png" alt="enter image description here" /></a></p>
  <p>Stored Value : <a href="https://i.sstatic.net/ylOai.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/ylOai.png" alt="enter image description here" /></a></p>
  <p>I am grateful for any hints!</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-09-15T17:23:36.917Z
Comments.Text: If you can reproduce on https://dmaster.demo.civicrm.org/, I'd go ahead and call that a bug and report it on https://lab.civicrm.org/dev/financial/-/issues/
  If you can work out in which version this problem started, that will be helpful.
Comments.UserDisplayName: Lars SG
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-09-18T11:08:42.523Z
Comments.Text: Thank You. Here we go ... https://lab.civicrm.org/dev/financial/-/issues/218
Comments.UserDisplayName: lbl
Tags: <contributions><taxes>
Title: Precise decimal and tax calculation
ThreadText: # Precise decimal and tax calculation
  
  (Asked by: username_0 on 2023-09-15)
  
  I have products that cost $10, including a 7% value-added tax. In the price set, I enter 9.345794393 accordingly <https://lab.civicrm.org/dev/core/-/issues/1603>, and I include the tax in the contribution type. I thought that CiviCRM had been calculating correctly recently, but it's not doing so anymore. During the initial calculation on dmaster, $20 is correctly displayed, but it's saving as $19.99.
  
  Calculation while typing: [![enter image description here](https://i.sstatic.net/iMNQ9.png)](https://i.sstatic.net/iMNQ9.png)
  
  Stored Value : [![enter image description here](https://i.sstatic.net/ylOai.png)](https://i.sstatic.net/ylOai.png)
  
  I am grateful for any hints!
  
  **Tags:** contributions, taxes
  
  > **Comments:**
  > **username_1**: If you can reproduce on https://dmaster.demo.civicrm.org/, I'd go ahead and call that a bug and report it on https://lab.civicrm.org/dev/financial/-/issues/ If you can work out in which version this problem started, that will be helpful.  
  > **username_0**: Thank You. Here we go ... https://lab.civicrm.org/dev/financial/-/issues/218  
  
  ---
  
  ## 0 answers
  
  