Tighten number formatting implementation