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.
#dinero.js#floating-point#moneyrepresentation
6.3K subscribers • 3 videos on Hallway
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 - MuxWhat 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”
u/phlickeyin r/node • Recommends
On “Numbers / Currency”