DEV Community

Discussion on: ⛵ Sailing the Choppy Waters of Floating-Point Precision in JavaScript 🔢

Collapse
 
best_codes profile image
Best Codes

Yep. I've been working on a precise feels like calculation that takes data from temperature, humidity, pressure, and wind speed and give me a number — then I discovered that my number was inaccurate because, with this error in JS, and some rather important multiplication and exponents, my number got wacky very quickly.
Thankfully, there are JS libraries like Big.js and math.js to help solve these issues. 😅