xrust_calclib 0.1.0

A Rust calculator library with floating‐point arithmetic and error handling
Documentation
  • Coverage
  • 100%
    10 out of 10 items documented0 out of 9 items with examples
  • Size
  • Source code size: 5 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.22 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • 62Xenon

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"] }