Convert number to format with hyphens and leading zeros