|
This tag accept the format string used by 'sprintf'. See the 'printf' manual page for
more detail.
Some valid format:
Apply the following format to the number '67' you will get ' 67' <stringformat>%6.0f</stringformat>
Do you want pad the number with zero? Use <stringformat>%06.0f</stringformat> to get '000067'.
The format <stringformat>%06.2f</stringformat> shows '000067.00'.
Some text formatting applied to the string 'abcd'
right align with leading spaces: <stringformat>%-10x</stringformat> output:
' abcd'
left align with fixed size and trailng spaces <stringformat>%10x</stringformat> 'abcd '
|