1 unstable release
0.1.2 | Oct 25, 2023 |
---|---|
0.1.1 |
|
0.1.0 |
|
#13 in #divide
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),
}
}