Answers.Body: <p>I was having a similar problem with php 7.2, Wordpress 5.0.3 and Civicrm 5.9.1.
  I ended up adding a javascript function to my website's javascript file. The meat of the function is <code>number.toFixed(2)</code> This forces the number to have only two decimal places.</p>
  
  <pre><code>function formatPrices() {
          const price_spans = document.querySelectorAll('.crm-price-amount-amount');
          if (!price_spans) {
              return;
          }
  
          price_spans.forEach(function(node) {
              const price = node.innerText;
              const data = price.split(' ');
              const symbol = data[0];
              const num = +data[1];
              const new_price = symbol + num.toFixed(2);
              node.innerText = new_price;
          });
      }
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-02-24T00:36:16.653Z
Answers.Text: Could you say where you're experiencing this problem?  Back when the OP wrote this, CiviCRM had recently added support for more significant digits in currency (to support cryptocurrencies better), but in general we thought we stamped out all the places where it shows too many zeroes for "regular" currencies.  If you tell us where this happened, we can fix it for everyone.
Answers.UserDisplayName: Jon G - Megaphone Tech
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-02-27T01:55:34.843Z
Answers.Text: I recently upgraded to Wordpress 5.1 and Civicrm  5.10.4. I was having the problem on public facing event pages. However, I just now disabled the javascript function and loaded an event page, and now I don't see the problem. So I guess ... it isn't a problem anymore :)
Answers.UserDisplayName: Doobious
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-02-27T02:01:16.550Z
Answers.Text: Well, I spoke too soon. I'm still seeing the problem on the registration pages. I would upload a screenshot, but I guess I'm not allowed to.
Answers.UserDisplayName: Doobious
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-02-27T02:33:10.333Z
Answers.Text: I'm also seeing the problem on the Configure Event > Fees tab under "Regular Fees". I took a look on the civi demo site and cannot duplicate the problem there.
Answers.UserDisplayName: Doobious
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-02-23T03:44:55.120Z
Answers.LastActivityDate: 2019-02-23T03:44:55.120Z
Answers.UserDisplayName: Doobious
Body: <p>The fee amount is displaying too many zeros. Every time I set the fee amount for an event, for example $55.00, a bunch of zeros gets added to the end ... $55.000000. I've reviewed all of the localization settings and everything appears to be set us as described for USD display. I've attached a screenshot of the issue. <a href="https://i.sstatic.net/CaPEq.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/CaPEq.jpg" alt="enter image description here"></a></p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-06-26T16:40:32.490Z
Comments.Text: Can you mention CiviCRM version and CMS you are using?
Comments.UserDisplayName: Pradeep Nayak
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-06-26T19:57:09.100Z
Comments.Text: if you can't replicate this on one of the civicrm demo sites then it could be theming on your site
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-06-26T19:57:27.247Z
Comments.Text: eg on http://dmaster.demo.civicrm.org/
Comments.UserDisplayName: petednz - fuzion
Tags: <civievent>
Title: How do I change the Fee Amount display in CiviEvent registration?
ThreadText: # How do I change the Fee Amount display in CiviEvent registration?
  
  (Asked by: username_0 on 2018-06-26)
  
  The fee amount is displaying too many zeros. Every time I set the fee amount for an event, for example $55.00, a bunch of zeros gets added to the end ... $55.000000. I've reviewed all of the localization settings and everything appears to be set us as described for USD display. I've attached a screenshot of the issue. [![enter image description here](https://i.sstatic.net/CaPEq.jpg)](https://i.sstatic.net/CaPEq.jpg)
  
  **Tags:** civievent
  
  > **Comments:**
  > **username_1**: Can you mention CiviCRM version and CMS you are using?  
  > **username_2**: if you can't replicate this on one of the civicrm demo sites then it could be theming on your site  
  > **username_2**: eg on http://dmaster.demo.civicrm.org/  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_3 on 2019-02-23. Score: 2
  
  I was having a similar problem with php 7.2, Wordpress 5.0.3 and Civicrm 5.9.1.
  I ended up adding a javascript function to my website's javascript file. The meat of the function is `number.toFixed(2)` This forces the number to have only two decimal places.
  
  ```
  function formatPrices() {
          const price_spans = document.querySelectorAll('.crm-price-amount-amount');
          if (!price_spans) {
              return;
          }
  
          price_spans.forEach(function(node) {
              const price = node.innerText;
              const data = price.split(' ');
              const symbol = data[0];
              const num = +data[1];
              const new_price = symbol + num.toFixed(2);
              node.innerText = new_price;
          });
      }
  
  ```
  
  > **Comments:**
  > **username_4**: Could you say where you're experiencing this problem?  Back when the OP wrote this, CiviCRM had recently added support for more significant digits in currency (to support cryptocurrencies better), but in general we thought we stamped out all the places where it shows too many zeroes for "regular" currencies.  If you tell us where this happened, we can fix it for everyone.  
  > **username_3**: I recently upgraded to Wordpress 5.1 and Civicrm  5.10.4. I was having the problem on public facing event pages. However, I just now disabled the javascript function and loaded an event page, and now I don't see the problem. So I guess ... it isn't a problem anymore :)  
  > **username_3**: Well, I spoke too soon. I'm still seeing the problem on the registration pages. I would upload a screenshot, but I guess I'm not allowed to.  
  > **username_3**: I'm also seeing the problem on the Configure Event > Fees tab under "Regular Fees". I took a look on the civi demo site and cannot duplicate the problem there.  
  
  ---
  
  