Math and JavaScript: Decimal vs. Binary: Why 0.1 + 0.2 does not equal 0.3 (and how to fix it)

preview_player
Показать описание
This screencast discusses decimal and binary numbers and conversions, how JavaScript stores numbers, why 0.1 + 0.2 does not equal 0.3 in JavaScript, and how to fix this problem.
Thanks for watching and happy coding!
All of my YouTubes can be found at:
Рекомендации по теме
Комментарии
Автор

Thank you so much, Lisa! I disliked how other people have explained it, but this helped me understand what's going on! The bonus of fixing it was helpful, too. The theory of it was wracking my brain, though this video proved really helpful! :)

OllyPotts