#divide #operations #arithmetic #basic #arithmetic-operations

yanked devarith

A simple math crate for basic arithmetic operations

1 unstable release

0.1.2 Oct 25, 2023
0.1.1 Oct 25, 2023
0.1.0 Oct 25, 2023

#13 in #divide

MIT license

2KB

Usages

use devarith::divide;
fn main() {
    let a = 10.0;
    let b = 0.0;

    match divide(a, b) {
        Ok(result) => println!("{} / {} = {}", a, b, result),
        Err(e) => println!("Error: {}", e),
    }
}

No runtime deps