Menu
Sign In Search Podcasts Charts People & Topics Add Podcast API Pricing
Podcast Image

Big App Energy

Currency Math and Round Errors

22 Mar 2023

Description

In this episode, Ben and Jacob discuss the importance of handling currency properly when dealing with money in apps. While it may seem straightforward, currency math involves a lot of complexity, and rounding errors can occur if not handled correctly. They discuss how these errors can lead to significant losses, as seen in the Vancouver stock exchange and the infamous "salami slicing" technique used to steal fractions of a cent in bank transactions. To avoid these issues, Ben and Jacob provide some tips for handling currency math in programming, such as using a decimal data type, carefully selecting rounding methods, avoiding intermediate rounding, using integer arithmetic, and using well-tested libraries. By following these guidelines, app developers can ensure accurate calculation results and prevent potential losses due to rounding errors. Tune in to learn more about the importance of currency math in app development.

Audio
Featured in this Episode

No persons identified in this episode.

Transcription

This episode hasn't been transcribed yet

Help us prioritize this episode for transcription by upvoting it.

0 upvotes
🗳️ Sign in to Upvote

Popular episodes get transcribed faster

Comments

There are no comments yet.

Please log in to write the first comment.