printf is nearly full implementation of standard ANSI C printf function, which sends the formatted
output to the screen in terminal (TTY) mode. In fact, it does the following:
| Flags | Meaning |
| none | Right align (pad spaces or zeros to left) |
| - | Left align (pad spaces to right) |
| + | Always force sign (include prefix '+' before positive values) |
| z | Don't postfix padding (this option is non-ANSI, i.e. TI specific) |
| space | Insert space before positive values |
| # | Prefix octal values with 0 and hex values (>0) with '0x')
Force '.' in float output (and prevent trunctation of trailing zeros) |
| ^ | TI-Float format: special character for the exponent and for the minus
sign, no '+' prefix in the exponent, 0. instead of 0, no leading zeros if the magnitude
is smaller than 1 (this option is non-ANSI, i.e. TI specific) |
| | | Center the output in the field (this option is non-ANSI, i.e. TI specific) |
| Type | Meaning |
| d, i | Signed decimal integer |
| u | Unsigned decimal integer |
| x | Lowercase hexadecimal integer |
| X | Uppercase hexadecimal integer |
| e | Floating point, format [-]d.dddde[sign]ddd (exponential format) |
| E | Like 'e' but with uppercase letter for the exponent |
| f | Floating point, format [-]dddd.dddd |
| g | Floating point: most compact float format available ('e' or 'f');
this is the most common option, used for most dialog floats |
| G | Like 'g' but with uppercase letter for the exponent |
| r | Floating point, engineering form (this option is non-ANSI, i.e. TI specific) |
| R | Like 'r' but with uppercase letter for the exponent |
| y | Floating point, mode specified float format (this option is non-ANSI, i.e. TI specific) |
| Y | Like 'y' but with uppercase letter for the exponent |
| c | Character |
| s | String |
| p | Pointer; principally the same as 'x' - do not use without 'l' modifier |
| % | None; the character '%' is printed instead |