| Crates.io | devarith |
| lib.rs | devarith |
| version | 0.1.2 |
| created_at | 2023-10-25 09:33:21.998357+00 |
| updated_at | 2023-10-25 09:51:49.977689+00 |
| description | A simple math crate for basic arithmetic operations. |
| homepage | |
| repository | https://github.com/thedevsaddam/devarith |
| max_upload_size | |
| id | 1013193 |
| size | 1,906 |
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),
}
}