var metricUnits = function(num) {
console.log(num.toString().length);
};
// This works, gives me 21
metricUnits(900000000000000000000);
// But this fails, gives me 5
metricUnits(9000000000000000000000);
When I invoke this function, 21 is logged to the console. However, when I add one or more zeros to the end of my input argument, 5 is printed to the console?! Why is this?