Make format_number work with 3 arguments