Contents | Index | < Browse | Browse >
RIGHT(<string>,<length>,[<padchar>])
returns a string
The result is a string of <length> characters made up the rightmost
characters in <string>. If <length> is greater than the length of
<string>, then the result is filled out on the left with <padchar> -- a
quick way to right-justify a string.
The default pad character is a blank.
Example:
say right('never to stop saying',11); >>> stop saying
say '$'right(4.50, 6) >>> $ 4.50
say '$'right(123.99, 6) >>> $123.99
say right('Whoa', 6, 'W') >>> WWWhoa
Also see
NOTE: Formatting tables
Next: STRIP() | Prev: REVERSE() | Contents: String functions