• handvat@lemmy.ml
    link
    fedilink
    arrow-up
    5
    ·
    3 years ago

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