JSFiddle - React, Tailwind, and code Playground
by ryanburnett
JavaScript
console.log("0.1 + 0.2: " + (0.1 + 0.2));
console.log("(0.1 + 0.2).toFixed(1): " + (0.1 + 0.2).toFixed(1));
console.log("(0.1 * 10 + 0.2 * 10) / 10: " + (0.1*10 + 0.2*10)/10); // convert to integers