position string at center
Description
s3 center(s1, i, s2)
center(s1, i, s2) produces a string of size i in which s1 is centered, with s2 used for padding at left and right as necessary.
Parameters
- s1
- string to be centered
- i
- length of result string
- s2
- padding sequence
- returns
- string padded to i length
Defaults
- i
- 1
- s2
- " "
Errors
101 |
i is not integer |
103 |
s1 or s2 is not a string |
205 |
i<0 |
See Also
- left — position string at left
- right — position string at right