Additional format examples

Table 1. Number Formatting Examples
Input Action Syntax Output
1234 Separate thousands by commas. , 1,234
1234 Show $ value with commas. $, $1,234
0.123 Show % value with 2 decimal points of precision. .2% 12.30%
12345 Display SI syntax. .2s 12k
123 Show precision to 2 decimal places. .2f 123.00
123 Include zero-padding for fixed width of 7. 07.2f 0123.00
123 Set sign for positive or negative values with precision to 2 decimal points. +.2f +123.00