• choose theme
  • British Summer Time GMT+1
    function add(a, b) {
    	let el = document.createElement("div")
    	el.style.setProperty("font-size", `calc(${a}px + ${b}px)`)
    	return parseFloat(el.style.fontSize.match(/\d+(?:\.\d+)?/))
    }

    1.1 + 2.2 = 3.30000000000000003; but add(1.1, 2.2) = 3.3