function almostEqual(a, b) { const eps = 1e-10; if (a>b) return (a-b) < a*eps; if (a