Here\'s the scenario: I\'m getting .9999999999999999 when I should be getting 1.0. I can afford to lose a decimal place of precision, so I\'m u
.9999999999999999
1.0
>>> parseFloat(0.9999999.toFixed(4)); 1 >>> parseFloat(0.0009999999.toFixed(4)); 0.001 >>> parseFloat(0.0000009999999.toFixed(4)); 0