Displaying large numbers

Hi there,

is there a way to automatically display large number “short-handed”? for example $1,000,000 as $1M etc.

Thank you

You could always use a conditional based on how you want to display the data.

Hi @hello.plannwin,
Try to add conditional on text/input element like,
One way to do it:

  1. Remove the commas
  2. Parse the string as a number, n
  3. If n > 999, truncate it back to a string as only the first 2 digits + “K”
  4. If n > 999999, truncate to first 4 digits + “M”
  5. if n > 999999999, truncate to first 4 digits + “B”
1 Like

Thanks for the tips