Skip to content

2010 02 12 maths fun - one example applies to many lanugages #173

@shailen-naidoo

Description

@shailen-naidoo

It is important to note that in this one https://wtfjs.com/wtfs/2010-02-12-maths-fun even the case where:

0.1 + 02 === 0.3 // false

is the same for Python:

0.1 + 0.2 == 0.3 // False

So this is not a quirk of just JS but it also stems to other languages like Python and it is not a problem of the language but more so an issue that stems from the way that computers store numbers (binary). I believe that this example should be removed because it is not specific to JS.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions