fend-core

Crates.iofend-core
lib.rsfend-core
version1.5.3
sourcesrc
created_at2020-08-31 12:21:08.666745
updated_at2024-10-05 21:52:56.281426
descriptionArbitrary-precision unit-aware calculator
homepagehttps://github.com/printfn/fend
repositoryhttps://github.com/printfn/fend
max_upload_size
id283063
size475,056
(printfn)

documentation

README

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");
}
Commit count: 1881

cargo fmt