The following operators are valid operators for numbers. Note: In addition to these there are also functions in the math module.
...
The sprintf()
operator can be applied to either a number or a string. The operator takes a formatting string as its sole argument. Use \%d
to escape a literal %d
and \\ to escape a literal \
:
Code Block | ||||
---|---|---|---|---|
| ||||
a = 10 b = a.sprintf("<\%d %d>") // b = "<%d 10>" |
...