JSFiddle - React, Tailwind, and code Playground
by sandfresh
JavaScript
let a = 0.1;
let b = 0.2;
a = a+b;
console.log(a.toPrecision(10)); //0.30000000000000004
by sandfresh
let a = 0.1;
let b = 0.2;
a = a+b;
console.log(a.toPrecision(10)); //0.30000000000000004