#calculator #convert

fend-core

Arbitrary-precision unit-aware calculator

66 releases (37 stable)

Uses new Rust 2024

1.5.6 Mar 14, 2025
1.5.5 Nov 16, 2024
1.5.3 Oct 5, 2024
1.5.0 Jul 10, 2024
0.1.11 Nov 27, 2020

#1639 in Math

Download history 155/week @ 2025-01-06 199/week @ 2025-01-13 200/week @ 2025-01-20 203/week @ 2025-01-27 196/week @ 2025-02-03 615/week @ 2025-02-10 349/week @ 2025-02-17 309/week @ 2025-02-24 322/week @ 2025-03-03 718/week @ 2025-03-10 390/week @ 2025-03-17 355/week @ 2025-03-24 236/week @ 2025-03-31 344/week @ 2025-04-07 250/week @ 2025-04-14 229/week @ 2025-04-21

1,104 downloads per month
Used in 3 crates

MIT license

385KB
13K SLoC

fend-core

This library implements most of the features of fend.

It requires no dependencies and can easily be used by other Rust programs.

Example

extern crate fend_core;

fn main() {
    let mut context = fend_core::Context::new();
    let result = fend_core::evaluate("1 + 1", &mut context).unwrap();
    assert_eq!(result.get_main_result(), "2");
}

No runtime deps