tokmd-analysis 1.11.1

Analysis logic and enrichers for tokmd receipts.
Documentation
1
2
3
4
5
6
//! Shared numeric helpers for complexity analysis.

pub(super) fn round_f64(val: f64, decimals: u32) -> f64 {
    let factor = 10f64.powi(decimals as i32);
    (val * factor).round() / factor
}