---
title: "Discussion on \"Don't use float to represent currency. Here is why\" | Hashnode"
description: "Discussion on \"Don't use float to represent currency. Here is why\". So you are building an e-commerce system or a personal expense tracker or whatever system that makes calculations using currency values, like calculating the total amount of dollars with taxes included or simply calculating the total price by multipl..."
url: "https://hashnode.com/posts/dont-use-float-to-represent-currency-here-is-why/63e66cf88076e76840c76b56"
---

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

Discussion

# [Don't use float to represent currency. Here is why](https://edumats.dev/dont-use-float-to-represent-currency-here-is-why?utm_source=hashnode&utm_medium=feed)

So you are building an e-commerce system or a personal expense tracker or whatever system that makes calculations using currency values, like calculating the total amount of dollars with taxes included or simply calculating the total price by multipl...

Feb 10, 2023 · 4 min read · edumats.dev  
Read the article

-   [#python](https://hashnode.com/tag/python)
-   [#python3](https://hashnode.com/tag/python3)
-   [#floating-point-arithmetic](https://hashnode.com/tag/floating-point-arithmetic)
-   [#web-development](https://hashnode.com/tag/web-development)

## Written by

[Eduardo Matsuoka](https://hashnode.com/@edumats)

@edumats · São Paulo, Brazil

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

Web Developer that loves Python

## Responses 1

Markdown supported · ⌘↵ to post

[LucianL](https://hashnode.com/@LucianL)

[Feb 10, 2023](https://hashnode.com/posts/dont-use-float-to-represent-currency-here-is-why/63e66cf88076e76840c76b56/comment/63e69170f30581f89abce6bf)

Very informative, thank you!

[Eduardo Matsuoka](https://hashnode.com/@edumats)

[Feb 10, 2023](https://hashnode.com/posts/dont-use-float-to-represent-currency-here-is-why/63e66cf88076e76840c76b56/comment/63e69170f30581f89abce6bf#reply-63e6926ff30581f89abce6d4)

Glad that you enjoyed it, [LucianL](https://hashnode.com/@LucianL)
