Standard formatting with decimal places | XM Community
Skip to main content
Question

Standard formatting with decimal places

  • November 4, 2019
  • 1 reply
  • 104 views

Akdashboard
Level 4 ●●●●
Forum|alt.badge.img+6
Is there a way to make the numeric entry for a question to display with 2 trailing decimal places, even if the initial input doesn't have a decimal? Example: Someone enters 2 in a question, I want the output to be 2.00. Rational: I want to display the entered values as standard currency ($2.00), but not force the survey taker to put in .00 for each whole dollar. I tried using the rounding math operation, but it won't include the extra 00's.

1 reply

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • 6083 replies
  • November 6, 2019
You can do this in JS with a blur event and toFixed function.