Episode 32: Jeff's Spygames... and more... episode artwork

EPISODE · Mar 15, 2021 · 50 MIN

Episode 32: Jeff's Spygames... and more...

from The Opinion Dominion · host JT Pennington

Jeff finds a spycam in his house... Pics: https://photos.smugmug.com/photos/i-3TNJDdR/0/7a1c0f79/4K/i-3TNJDdR-4K.jpg https://photos.smugmug.com/photos/i-2XkJcGL/0/a4e69b53/4K/i-2XkJcGL-4K.jpg https://photos.smugmug.com/photos/i-kf4ngmC/0/413f7fb1/4K/i-kf4ngmC-4K.jpg https://photos.smugmug.com/photos/i-W7H5TwT/0/ae6d64ab/4K/i-W7H5TwT-4K.jpg https://photos.smugmug.com/photos/i-QFBh738/0/00fd0296/4K/i-QFBh738-4K.jpg Ulfnic's JS Code information: What is 0.1 + 0.2? Wrong! It's 0.30000000000000004. Getting JS to evaluate basic decimal math is a StackOverflow greasy rabbit hole of hacky solutions guaranteed to work for at least a week. JavaScript needs a 3rd-party 24KB library to accomplish basic decimal math(1), alternatively you can use the new (and not well supported) BigInt() to pretend you're doing decimal math by string hacking decimal points into super long integers. (1) https://github.com/MikeMcl/big.js/blob/master/big.js (2) https://dustinpfister.github.io/2019/09/06/js-bigint/ (3) https://javascriptinfo.com/view/3760151/native-bigint-and-intl-numberformat-for-accurate-currency-calculations-and-display Steps to to reproduce 0.1 + 0.2: # Option 1: https://jsconsole.com/ console.log(0.1 + 0.2) # Option 2: In browser # ctrl + shift + j # Chromium # ctrl + shift + k # Firefox # click on "Console" tab console.log(0.1 + 0.2) # Option 3: NodeJS nodejs -e "console.log(0.1 + 0.2)"

Jeff finds a spycam in his house... Pics: https://photos.smugmug.com/photos/i-3TNJDdR/0/7a1c0f79/4K/i-3TNJDdR-4K.jpg https://photos.smugmug.com/photos/i-2XkJcGL/0/a4e69b53/4K/i-2XkJcGL-4K.jpg https://photos.smugmug.com/photos/i-kf4ngmC/0/413f7fb1/4K/i-kf4ngmC-4K.jpg https://photos.smugmug.com/photos/i-W7H5TwT/0/ae6d64ab/4K/i-W7H5TwT-4K.jpg https://photos.smugmug.com/photos/i-QFBh738/0/00fd0296/4K/i-QFBh738-4K.jpg Ulfnic's JS Code information: What is 0.1 + 0.2? Wrong! It's 0.30000000000000004. Getting JS to evaluate basic decimal math is a StackOverflow greasy rabbit hole of hacky solutions guaranteed to work for at least a week. JavaScript needs a 3rd-party 24KB library to accomplish basic decimal math(1), alternatively you can use the new (and not well supported) BigInt() to pretend you're doing decimal math by string hacking decimal points into super long integers. (1) https://github.com/MikeMcl/big.js/blob/master/big.js (2) https://dustinpfister.github.io/2019/09/06/js-bigint/ (3) https://javascriptinfo.com/view/3760151/native-bigint-and-intl-numberformat-for-accurate-currency-calculations-and-display Steps to to reproduce 0.1 + 0.2: # Option 1: https://jsconsole.com/ console.log(0.1 + 0.2) # Option 2: In browser # ctrl + shift + j # Chromium # ctrl + shift + k # Firefox # click on "Console" tab console.log(0.1 + 0.2) # Option 3: NodeJS nodejs -e "console.log(0.1 + 0.2)"

NOW PLAYING

Episode 32: Jeff's Spygames... and more...

0:00 50:57

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.

Frequently Asked Questions

How long is this episode of The Opinion Dominion?

This episode is 50 minutes long.

When was this The Opinion Dominion episode published?

This episode was published on March 15, 2021.

What is this episode about?

Jeff finds a spycam in his house... ...

Can I download this The Opinion Dominion episode?

Yes, you can download this episode by clicking the download button on the episode player, or subscribe to the podcast in your preferred podcast app for automatic downloads.
URL copied to clipboard!