pyoe2-craftpath 0.5.1

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.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use std::cmp::Ordering;

pub fn cmp_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
    } else if a < b {
        Ordering::Less
    } else {
        Ordering::Greater
    }
}