| Crates.io | arithmetic_yukinari |
| lib.rs | arithmetic_yukinari |
| version | 0.1.7 |
| created_at | 2023-12-07 00:57:33.958033+00 |
| updated_at | 2023-12-07 04:43:24.05664+00 |
| description | A simple arithmetic library |
| homepage | |
| repository | https://github.com/Sei-Yukinari/arithmetic_yukinari |
| max_upload_size | |
| id | 1060579 |
| size | 4,535 |
This crate is a library for arithmetic operations.
[dependencies]
arithmetic_yukinari = "0.1"
use arithmetic_yukinari::{add, subtract, multiply, divide};
fn main() {
let a = add(1, 2);
assert_eq!(a, 3);
let s = subtract(1, 2);
assert_eq!(s, -1);
let m = multiply(2, 3);
assert_eq!(m, 6);
let d = divide(6, 3);
assert_eq!(d, Some(2));
}