---
title: "Decoding Why 0.6 + 0.3 = 0.8999999999999999 in JS and How to Solve?"
url: https://daily.dev/posts/decoding-why-0-6-0-3-0-8999999999999999-in-js-and-how-to-solve--7qmvib8m0
source_url: https://dev.to/jeevaramanathan/decoding-why-06-03-08999999999999999-in-js-and-how-to-solve-640
type: article
source: "DEV"
published: 2023-11-17T18:07:52.052Z
updated: 2023-11-16T20:07:32.733Z
tags: ["javascript", "hacktoberfest"]
reading_time: 6
upvotes: 0
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Decoding Why 0.6 + 0.3 = 0.8999999999999999 in JS and How to Solve?

**[DEV](https://daily.dev/sources/devto)** · 6 min read · 0 upvotes · 0 comments

## Summary

The article explains why adding 0.6 and 0.3 in JavaScript results in 0.8999999999999999 due to how computers handle floating-point numbers. It also provides approaches to achieve accurate results when working with currency or financial calculations.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://dev.to/jeevaramanathan/decoding-why-06-03-08999999999999999-in-js-and-how-to-solve-640>

## Similar posts on daily.dev

- [Don’t just attend KubeCon \+ CloudNativeCon, Merge Forward your experience\!](https://daily.dev/posts/don-t-just-attend-kubecon-cloudnativecon-merge-forward-your-experience--l0rpp73x8) · CNCF · 0 upvotes · 0 comments
- [Announcing H2 2026 KCDs](https://daily.dev/posts/announcing-h2-2026-kcds-m96goajm1) · CNCF · 1 upvotes · 0 comments
- [Two months of Open Community Groups](https://daily.dev/posts/two-months-of-open-community-groups-asf52zhbs) · CNCF · 0 upvotes · 0 comments

---

Tags: [#javascript](https://daily.dev/tags/javascript), [#hacktoberfest](https://daily.dev/tags/hacktoberfest)

[View this post on daily.dev](https://daily.dev/posts/decoding-why-0-6-0-3-0-8999999999999999-in-js-and-how-to-solve--7qmvib8m0)
