Additional Format Examples

Number Formatting Examples
InputActionSyntaxOutput
1234Separate thousands by commas.,1,234
1234Show $ value with commas.$,$1,234
0.123Show % value with 2 decimal points of precision..2%12.30%
12345Display SI syntax..2s12k
123Show precision to 2 decimal places..2f123.00
123Include zero-padding for fixed width of 7.07.2f0123.00
123Set sign for positive or negative values with precision to 2 decimal points.+.2f+123.00