JavaScript Number Tricks Every Developer Should Know (2026)
Numbers in JavaScript are weirder than you think. Here are the tricks that save me from bugs.
The Big Gotcha: Floating Point
0.1 + 0.2 === 0.3 // false!
0.1 + 0.2 // 0.30000000000000004
JavaScript Number Tricks Every Developer Should Know (2026) Numbers in JavaScript are...
JavaScript Number Tricks Every Developer Should Know (2026)
Numbers in JavaScript are weirder than you think. Here are the tricks that save me from bugs.
The Big Gotcha: Floating Point
0.1 + 0.2 === 0.3 // false!
0.1 + 0.2 // 0.30000000000000004

Every developer has seen this: 0.1 + 0.2 // 0.30000000000000004 Enter fullscreen mode ...

If you’ve spent any time building forms in React Native with React Hook Form and validation libraries...

Let me be honest with you. Every time I start a new Node.js project, I copy-paste this from my last...

Every "math evaluator in N lines" article either uses shunting-yard (Dijkstra's stack-based RPN...

A clever use of CSS to calculate and display a discounted product price by providing a base price and discount amount, featuring…

The Math Cure for Your Layout Headaches Grab a cup of coffee and let's have a real talk about...