Built-in number formatting function