Adds characters to the right side of a string up to the maximum length.

Input

{{ "1" | rpad: 3 }}

Output

1  

Specifying the padding character

rpad supports an optional character parameter. The character parameter specifies the character used to pad the source string. If not specified, then space will be used.

Input

{{ "1" | rpad: 3, "0" }}

Output

100
© 2014-2023 Cyotek Ltd. All Rights Reserved.
Documentation version 1.8 (buildref #135.15699), last modified 2023-04-04. Generated 2024-02-29 10:57 using Cyotek HelpWrite Professional version 6.19.1