converts numeric value to characters with specific lengths, adding 0 at beginning

num2char(val, nbdigits = 3)

Arguments

val

numeric. value to be converted into string

nbdigits

numeric. number pf digits for string

Value

valchar string corresponding to val with 0 if needed