一个简单的数学crate,用于基本的算术运算
由 thedevsaddam 编写
#12 in #divide
2KB
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), } }