powered by
This function formats a number to a string of exactly four characters.
format_four_chars(num)
A string representation of the number with exactly four characters.
The number to be formatted.
format_four_chars(123) format_four_chars(-12.34)
Run the code above in your browser using DataLab