Skip to content
Y
yTube.SITE v8.0.4
media / worlds / tools / internet oddities
YouTube / video information

0.1 + 0.2 === 0.3 in JavaScript? 🤯 #shorts

Video information, playback and saved actions.

0.1 + 0.2 === 0.3 in JavaScript? 🤯 #shorts

Description: Is 0.1 + 0.2 equal to 0.3 in JavaScript? 🤔
Most developers get this wrong!

✅ Answer: false
0.1 + 0.2 = 0.30000000000000004

Why? Computers store numbers in binary, and 0.1 can't be stored exactly in binary. So a tiny rounding error appears. It's not ... Close description
      
Videos related to "0.1 + 0.2 === 0.3 in JavaScript? 🤯 #shorts"

Related videos are temporarily unavailable.

Try again, or come back later.