new formatNumber function