Improved number formatting