---
title: "Discussion on \"Why 0.1 + 0.2 isn't always 0.3 : Floating Point Explained\" | Hashnode"
description: "Discussion on \"Why 0.1 + 0.2 isn't always 0.3 : Floating Point Explained\". Go ahead and type out 0.1 + 0.2 in your IDE. You expect 0.3, but instead, you get 0.30000000000000004. You stare at the screen, knowing something’s off. Is your computer broken? Is your code faulty? Well, news flash, it's intentional and it's all a p..."
url: "https://hashnode.com/posts/why-01-02-isnt-always-03-floating-point-explained/68d5368ec414db7112574a24"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Why 0.1 + 0.2 isn't always 0.3 : Floating Point Explained](https://jerkeyray.hashnode.dev/why-01-02-isnt-always-03-floating-point-explained?utm_source=hashnode&utm_medium=feed)

Go ahead and type out 0.1 + 0.2 in your IDE. You expect 0.3, but instead, you get 0.30000000000000004. You stare at the screen, knowing something’s off. Is your computer broken? Is your code faulty? Well, news flash, it's intentional and it's all a p...

Sep 25, 2025 · 5 min read · jerkeyray.hashnode.dev  
Read the article

-   [#floating-point-arithmetic](https://hashnode.com/tag/floating-point-arithmetic)
-   [#mathematics](https://hashnode.com/tag/mathematics)

## Written by

[Aditya Srivastava](https://hashnode.com/@jerkeyrey)

@jerkeyrey · Tamil Nadu, India

  
[View profile](https://hashnode.com/@jerkeyrey)

consummate tinkerer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
