Skip to content
0:00 / 0:00

#dinero.js#floating-point#moneyrepresentation

Falsehoods programmers believe about money - Sarah Dayan

Nearform

6.3K subscribers • 3 videos on Hallway

YouTube
  • Recommended by 2 people: 2 in engineering communities.
  • Presented by Sarah Dayan, creator of Dinero.js

Intermediate. Assumes working knowledge.

1.5K views5 years ago2 recommendations

Software designProgramming languagesJavaScriptNode.js, Deno and BunDesign patterns

Sarah Dayan discusses the complexities of representing and handling money in software, highlighting common floating-point and domain pitfalls.

Money is more complex than you think. It's way more than what you can stuff in a number type. Whether it's because of floating-point math or domain-specific overlooks, the money domain is riddled with gotchas that we, as programmers, often learn the hard way. For the last 3 years, I've been building Dinero.js, a library to handle money in JavaScript and Node.js. Together, we'll go over common falsehoods programmers believe about money and how to solve them to accurately and safely represent money in a JavaScript program. NodeConf Remote 2021 was kindly sponsored by: - NearForm - Bloomberg - Red Hat - Microsoft - Mux

Why it's here

2 people recommend this

What people say. Recommended as a must-watch talk on why using floats for currency is a mistake and how to handle money correctly.

u/crashorbitin r/programming • Recommends

On “Type ‘Float’ is An Expensive Mistake”

Someone needs to write an article called "Falsehoods programmers believe about money." There's a video with the topic: link to this video Worth a look.

u/phlickeyin r/node • Recommends

On “Numbers / Currency”

Dinero.js was made for this problem https://dinerojs.com/ I also suspect you'll enjoy watching this talk titled "Falsehoods Developers Believe about Money" link to this video