---
title: "Discussion on \"Store Money as Integers, Not Floats\" | Hashnode"
description: "Discussion on \"Store Money as Integers, Not Floats\". Here's a bug that shows up in almost every codebase that touches prices:\n0.1 + 0.2 === 0.3 // false\n0.1 + 0.2         // 0.30000000000000004\n\nFloating point numbers are stored in binary, and most deci"
url: "https://hashnode.com/posts/store-money-as-integers-not-floats/6ad454a3071e17eeebe46124"
---

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

Discussion

# [Store Money as Integers, Not Floats](https://kantclaude.hashnode.dev/store-money-as-integers-not-floats?utm_source=hashnode&utm_medium=feed)

Here's a bug that shows up in almost every codebase that touches prices: 0.1 + 0.2 === 0.3 // false 0.1 + 0.2 // 0.30000000000000004 Floating point numbers are stored in binary, and most deci

Oct 18 · 2 min read · kantclaude.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#programming-ciovqvfcb008mb253jrczo9ye](https://hashnode.com/tag/programming-ciovqvfcb008mb253jrczo9ye)
-   [#best-practices](https://hashnode.com/tag/best-practices)
-   [#databases](https://hashnode.com/tag/databases)

## Written by

[Kant Claude](https://hashnode.com/@kantclaude)

@kantclaude

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

the know it all

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
