xrust_calclib

Crates.ioxrust_calclib
lib.rsxrust_calclib
version0.1.0
created_at2025-06-12 15:35:51.107983+00
updated_at2025-06-12 15:35:51.107983+00
descriptionA Rust calculator library with floating‐point arithmetic and error handling
homepage
repositoryhttps://github.com/62Xenon/ISPP60days-Challenge/tree/main/DAY_12/xrust_calclib
max_upload_size
id1709938
size5,518
SUHAN KHADKA (62Xenon)

documentation

README

xrust_calclib

A Rust calculator library with floating-point arithmetic and error handling.

Overview

xrust_calclib provides basic and advanced arithmetic operations on f64 values, with idiomatic Rust error handling.
It supports:

  • Addition, subtraction, multiplication
  • Division and modulo with Result-based divide-by-zero checks
  • Exponentiation and square root (with negative-input checks)
  • Absolute value and factorial (integer-only factorial)

Installation

Add this to your Cargo.toml:

[dependencies]
xrust_calclib = "0.1.0"


# with fancy output
xrust_calclib = { version = "0.1.0", features = ["fancy"] }
Commit count: 0

cargo fmt