You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We often need to compare two floating point numbers a and b in Rust, which can be done using a.partial_cmp(b).unwrap(). This panics as soon numbers like NaN are involved. We should investigate whether we can avoid them using Errors (instead panics) when creating certain objects.
The text was updated successfully, but these errors were encountered:
We often need to compare two floating point numbers
a
andb
in Rust, which can be done usinga.partial_cmp(b).unwrap()
. This panics as soon numbers likeNaN
are involved. We should investigate whether we can avoid them using Errors (instead panics) when creating certain objects.The text was updated successfully, but these errors were encountered: