RPAD
Pads a string on the right side
Parameters
value
String (required) - The string to pad
count
Number (required) - The number of characters to pad
character
String (optional) [default = ' '] - The character to use for padding
Returns
String
Examples
RPAD('2', 4, '0')
// returns "2000"
RPAD('2', 6, '0')
// returns "200000"
Updated about 1 year ago