CodingTrain / CodingTrain/Suggestion-Box

Floating point imprecision / errors ⚠️

Open
#1,644 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
570
Forks
85
PR merge metrics
No merged PRs in 30d

Description

![0.3 - 0.2 === 0.1 // false](https://user-images.githubusercontent.com/395307/117132435-8528f980-adab-11eb-9525-0d5f769bb420.png)

Most folks doing anything with zooming or really big or small numbers run into floating point imprecision at some point. Here's my zoomed-in spiral glitching out (around 1/1000000 the size of a hydrogen atom): https://youtu.be/EA9fKc_XxQA

Here's Computerphile's explainer: https://youtu.be/PZRI1IfStY0

This might be a funny topic for a whole Coding Train. Has it been touched on in other episodes?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.