A tool for Path of Exile 2 to find the best craftpaths based on the categories: *most likely, most efficient and cheapest*, between a starting item and a target item.
usestd::cmp::Ordering;pubfncmp_f64(a:f64, b:f64)-> Ordering{let eps = 1e-15;// f64 should have a precision of 15 (to 17). cap at 15
if(a - b).abs()< eps {Ordering::Equal
}elseif a < b {Ordering::Less
}else{Ordering::Greater
}}