How do I format a number (10000) into 10,000 (with comma)


#1

I feel stupid here. I have looked all over and cannot find out how I would format a number with a comma. Printing just the number to a dashboard gives 10000. But I want 10,000.


#2

try format("Total is %,d", 10000)

Reference: https://wiki.webcore.co/Functions#format


#3

Thank you!
Yes, I read through the format section in the wiki several times. I just could not figure out the syntax.


#4


#5

I have to stare at that thing for a few minutes each time I look at that cheat sheet :slight_smile: