var i; for(i = 0; i < 1.01; i += 0.05) { document.writeln(i.toPrecision(2) + " " + i.toPrecision(1) + " " + i.toPrecision(20)); }