fill-from-left()

Prev Next

This function adds a filling character b to the left side of text a until a length of c is reached.

Parameters

Parameter

Description

a

Text.

b

Filling character. Note: If more than one character is specified, only the first character is used. See examples below.

c

Length of result text.

Examples

Parameter a

Parameter b

Parameter c

Result

12345

0

10

0000012345

12345

0

1

12345

12345

test

10

ttttt12345