calculator-lib

Crates.iocalculator-lib
lib.rscalculator-lib
version0.1.1
sourcesrc
created_at2024-08-25 20:38:38.491877
updated_at2024-08-26 09:34:05.714922
descriptionA simple calculator library.
homepage
repository
max_upload_size
id1351459
size39,273
Varga Marcell (marci1175)

documentation

README

A simple calculator library written for rust.

This calculator support simple calculations including: Addition, Subtraction, Division, Multiplication, Power.

Example

// Create calculator instance
let calculator = Calculator::new("((5^3 + 4^2) * (12^2 - 6^3)) / (3^2 + 7) + (144/12 + 8^2) - (2^4 * 7) + 3^3").unwrap();
// Calculate
let result = calculator.calculate(None);
. . .
Commit count: 0

cargo fmt