---
title: "Discussion on \"Type for Money\" | Hashnode"
description: "Discussion on \"Type for Money\". This is a pretty easy topic but most of us don't know which is the best type to use to store money.\nEg: for $5.9, most people would go with a double or float . They think it is correct, but it is not.\nLet's quickly talk about it.\nBefore jumping into ..."
url: "https://hashnode.com/posts/type-for-money/638c12e6bc0abfd402accc2e"
---

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

Discussion

# [Type for Money](https://sethphat.dev/type-for-money?utm_source=hashnode&utm_medium=feed)

This is a pretty easy topic but most of us don't know which is the best type to use to store money. Eg: for $5.9, most people would go with a double or float . They think it is correct, but it is not. Let's quickly talk about it. Before jumping into ...

Dec 4, 2022 · 2 min read · sethphat.dev  
Read the article

-   [#money](https://hashnode.com/tag/money)
-   [#developer](https://hashnode.com/tag/developer)
-   [#php](https://hashnode.com/tag/php)
-   [#databases](https://hashnode.com/tag/databases)

## Written by

[Seth Chen](https://hashnode.com/@sethphat)

@sethphat · Desire Grand Prix

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

Seth Phat Geek Blog

develops awesome software, contributes to OSS, writes tech tips, and loves Vietnamese milk coffee!

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
