rjust
Right-align the value in a field of a given width.
def rjust(
value: string,
arg: integer
) - > string
Right-align the value in a field of a given width.
Parameters
| Name | Type | Description |
|---|---|---|
| value | string | The string value to be right-aligned. |
| arg | integer | The total width of the resulting field, including the original string and leading padding. |
Returns
| Type | Description |
|---|---|
string | The original string padded with leading spaces to reach the specified total width. |