Crates.io | fend-core |
lib.rs | fend-core |
version | 1.5.3 |
source | src |
created_at | 2020-08-31 12:21:08.666745 |
updated_at | 2024-10-05 21:52:56.281426 |
description | Arbitrary-precision unit-aware calculator |
homepage | https://github.com/printfn/fend |
repository | https://github.com/printfn/fend |
max_upload_size | |
id | 283063 |
size | 475,056 |
This library implements most of the features of fend.
It requires no dependencies and can easily be used by other Rust programs.
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");
}