• danda@lemmy.zip
    link
    fedilink
    arrow-up
    2
    ·
    2 months ago

    It’s because parseInt is expecting a string, so the decimal gets converted to a string, and 0.0000005.toString() returns 5e-7.