Made changes to the formatNumber function in an attemopt to fix the error, to no avail.  Still workingon it.