Crates.io | fend-core |
lib.rs | fend-core |
version | 1.5.5 |
source | src |
created_at | 2020-08-31 12:21:08.666745 |
updated_at | 2024-11-16 22:08:41.960165 |
description | Arbitrary-precision unit-aware calculator |
homepage | https://github.com/printfn/fend |
repository | https://github.com/printfn/fend |
max_upload_size | |
id | 283063 |
size | 478,117 |
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");
}