Better way to format number. Omits unnecessary trailing 0 if any.