spreadsheet-to-json 0.1.10

Asynchronous conversion of Excel and OpenDocument spreadsheets as well as CSV and TSV files to JSON or JSONL
Documentation
1
2
3
4
5
6
7
8
9
10
11

pub trait RoundDecimal {
    fn round_decimal(&self, decimals: u8) -> Self;
}

impl RoundDecimal for f64 {
    fn round_decimal(&self, decimals: u8) -> Self {
        let multiplier = 10.0f64.powi(decimals as i32);
        (*self * multiplier).round() / multiplier
    }
}