• handvat
    link
    fedilink
    arrow-up
    5
    ·
    4 years ago

    You shouldn’t attempt comparing 2 floating point numbers with simply == (or === in JavaScript) in most cases and in most languages anyways.