self
number
The number to convert to a string
integer-places
number
The minimum number of integer digits (pads with zeros if needed)
decimal-places
number
The number of decimal places to include in the output
return
string
A string representation of the number with optional formatting