num_to_str
Core (string.inc)
Description
num_to_str - Converts a number to a string.
Syntax
num_to_str ( num, string[], len )
Type
Native
Notes
Fills string for a max length of len.

This can be written as:
format(string, len, "%d", num)