-
Notifications
You must be signed in to change notification settings - Fork 1
api crates calculator structs calculator::Calculator
github-actions[bot] edited this page Feb 6, 2026
·
2 revisions
A calculator that performs basic arithmetic operations.
The Calculator struct maintains a history of all operations performed, allowing users to review previous calculations.
use calculator::Calculator; let mut calc = Calculator::new(); let sum = calc.add(10.0, 5.0); assert_eq!(sum, 15.0);