Skip to main content

ZFILL

Pad a string with leading zeros

Example Usage

ZFILL("123", 5) -> "00123”

Overview

Function signature
ZFILL(value, length)

Category
String

Return data type
string

Arguments

NameDataTypeList Options                          Description
valuestringThe string to pad; zeros added to the front
lengthintThe finished length of the string