132: Dealing with Money in programming episode artwork

EPISODE · Jul 18, 2018 · 18 MIN

132: Dealing with Money in programming

from Fragmented - AI Developer Podcast · host Spec

In this mini fragment Kaushik talks about dealing with the Money object. With money we need decimals, but the obvious solution of using a float or double may not work as advertised. Listen to this episode to find out why and how you can go about dealing with this. Show Notes The infamous Short - Ep029: All about the infamous 65,536 dex method count IEEE_754 float storage format How binary fractions work Problematic snippet 1: println(1.03-0.42) # prints 0.6100000000000001 Problematic snippet 2: var x = 0F (1..100).forEach { i -> x += 0.01F } println(x) # 0.99999934 vs 1 Sponsors Bitrise - Bitrise is your mobile continuous integration and delivery for your whole team, with dozens of integrations for your favorite services. Contact @fragmentedcast [twitter.com] @donnfelker and +DonnFelker @kaushikgopal and +KaushikGopalIsMe

Episode metadata supplied by the publisher feed · Published Jul 18, 2018

Embed this episode

In this mini fragment Kaushik talks about dealing with the Money object. With money we need decimals, but the obvious solution of using a float or double may not work as advertised. Listen to this episode to find out why and how you can go about dealing with this. Shownotes http://fragmentedpodcast.com/episodes/132/

Distinct summary based on available episode metadata or transcript content.

NOW PLAYING

132: Dealing with Money in programming

0:00 18:01

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 podcasts found.

Frequently Asked Questions

How long is this episode of Fragmented - AI Developer Podcast?

This episode is 18 minutes long.

When was this Fragmented - AI Developer Podcast episode published?

This episode was published on July 18, 2018.

Can I download this Fragmented - AI Developer Podcast episode?

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