1. React
  2. JSConf Asia
  3. 2019
  4. Double the Beyoncé: Navigating Numbers in JavaScript

Double the Beyoncé: Navigating Numbers in JavaScript

Meggan Turner at JSConf Asia 2019

Do you lie awake at night wondering why you can’t count up past 9 quadrillion in JavaScript? Have you ever been troubled by numbers that don’t add up correctly or do what you expect (looking at you, 0.1 + 0.2)? JavaScript’s numbers can behave a little… unexpectedly at times, and cause bugs that can have you scratching your head for hours on end. From incorrect arithmetic to Beyoncé showing up on your page twice as often as you expect, in this talk we’ll take a look at the quirks that come from numbers in JavaScript & the strange issues they can cause.