|
|
| Line 26: |
Line 26: |
| | | style="border-style: solid; border-width: 0px 0px 1px 0px"|## | | | style="border-style: solid; border-width: 0px 0px 1px 0px"|## |
| | |- | | |- |
| − | | style="border-style: solid; border-width: 0px 1px 1px 0px"|4 | + | | style="border-style: solid; border-width: 0px 1px 0px 0px"|4 |
| | | style="text-align:left; border-style: solid; border-width: 0px 1px 1px 0px"|Pads the displayed number with spaces until the number of digits equals 4. | | | style="text-align:left; border-style: solid; border-width: 0px 1px 1px 0px"|Pads the displayed number with spaces until the number of digits equals 4. |
| − | | style="border-style: solid; border-width: 0px 0px 1px 0px"|_ _ _# <br />_ _## <br />_### <br />#### | + | | style="border-style: solid; border-width: 0px 0px 0px 0px"|_ _ _# <br />_ _## <br />_### <br />#### |
| | |- | | |- |
| | |} | | |} |
| For information about ROBOTC string, please see the article: Strings.
|
|
Some display functions offer a precision parameter, which pads the displayed number with either zeros or spaces, until the number of digits is equal to the precision value:
| Precision value
|
Description
|
Example Output
|
| -4
|
Pads the displayed number with zeros until the number of digits equals 4.
|
000# 00## 0### ####
|
| 0
|
No padding.
|
##
|
| 4
|
Pads the displayed number with spaces until the number of digits equals 4.
|
_ _ _# _ _## _### ####
|
Note: Underscore ( _ ) character denotes a space.
|