Skip to content
Currency Math and Round Errors episode artwork

EPISODE · Mar 22, 2023 · 19 MIN

Currency Math and Round Errors

from Big App Energy · host Hired Gun Apps

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.

Episode metadata supplied by the publisher feed · Published Mar 22, 2023

Embed this episode

Ready to play

Currency Math and Round Errors

0:00 19:49

No transcript for this episode yet

We transcribe on demand. Request one and we'll notify you when it's ready — usually under 10 minutes.

No similar episodes found.

No similar podcasts found.

Frequently Asked Questions

How long is this episode of Big App Energy?

This episode is 19 minutes long.

When was this Big App Energy episode published?

This episode was published on March 22, 2023.

Can I download this Big App Energy episode?

Yes. Use the download control on the episode player to save the publisher-provided media file.
URL copied to clipboard!