Fixed Rounding 2 Decimal Places | XM Community
Skip to main content

I'm working on an order form. I have the rounding figured out; however, it drops the 0 if it's the final digit. I've tried searching for solutions and haven't been successful. Recommendations? An example would be helpful. I'm a visual learner and new to this level of Qualtrics.

This is not a problem with Qualtrics, but with JavaScript in general. You can use regex to overcome this. Here's a screenshot of the setup:
image.pngThis will add a zero if you have only one digit after the decimal place. Make sure the dots in the branch match and also that there is no space when you are assigning a new value to rounded_num


Leave a Reply