fixed formatNumber bug with more than 3 decimals