What happens if you calculate 0.1 + 0.2 in different programming languages?

Jan 30, 2026Channel
AI Analysis
Data from YouTube Data API v3Updated Just now
World of OSes
World of OSes

50.7K subscribers

View Channel

Video Overview

Video Details

Published4 months ago
Duration11:50
Video IDsI9kQF2wRIY
Languageen
CategoryScience & Technology
PrivacyPublic
Made for KidsNo
Video TypeRegular Video

Performance Metrics

Views1.5K
Likes65
Comments17
Engagement Rate5.61%
Likes per 100 views4.45
Comments per 1K views11.63

Description

0.1 + 0.2 = 0.3, simple right? But here's the catch; computers store numbers in binary, not decimal. In the same way that 1/3 can't be precisely represented in decimal, 1/10 can't be precisely represented in binary, so it has to round off slightly. 00:00 - Title 00:06 - Python 02:24 - C Plus Plus 04:12 - C Sharp 05:53 - Java 08:08 - JavaScript 08:57 - Game Maker 10:22 - Scratch 11:29 - End screen Code: https://github.com/StefanGrace/ZeroPointOnePlusZeroPointTwo ♪ Music ♫ Song: Clarx - Zig Zag [NCS Release] Music provided by NoCopyrightSounds Free Download/Stream: http://ncs.io/ZigZag Watch: http://youtu.be/CLEWmT_8ppM Neon.Deflector - Outpost X https://neondeflector.bandcamp.com/track/outpost-x Jeremy Blake - A Rising Wave [YouTube audio library]

Related Videos

More videos from World of OSes