left(a, b)

Returns the b leftmost characters of a.

Description of Parameters


Parameter

Description

a

Text.

b

Length of the result text. If a is shorter, a is returned. See examples.


Examples


Parameter a

Parameter b

Result


1


abcde

1

a

abcde

6

abcde

See Also