How Python Compares Floats and Ints: When Equals Isn’t Really Equal - eviltoast
  • Miaou@jlai.lu
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    6 months ago

    Rust has a warning (has it been promoted to error? I think it was supposed to be) about comparing floats. Nothing to do with same being const. You basically don’t have an equality operator for them