4 ms·
My point is sometimes I want NaN to compare with NaN as true when I'm using a float as a key in a table.
by duped 4y ago
My point is sometimes I want NaN to compare with NaN as true when I'm using a float as a key in a table.
- tialaramex 4y agoYou are welcome to build a type which has this property and declares that it is Eq. But Rust's built-in floating point types f32 and 64 do not have that property.