NNPDF / pineappl

PineAPPL is not an extension of APPLgrid
https://nnpdf.github.io/pineappl/
GNU General Public License v3.0
12 stars 3 forks source link

Define a strategy for floating point numbers that are not comparable #238

Open cschwan opened 11 months ago

cschwan commented 11 months ago

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.