yotta 0.2.0

A no_std arbitrary-precision arithmetic library
Documentation
  • Coverage
  • 0%
    0 out of 6 items documented0 out of 0 items with examples
  • Size
  • Source code size: 23.54 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 288.34 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 7s Average build duration of successful builds.
  • all releases: 7s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • zanderlewis

Yotta

Yotta is a pure Rust arbitrary-precision arithmetic library. It is designed to be fast and easy to use. Yotta is still in development, so it is not recommended for production use.

Yotta is named after Yottabyte, the largest unit of digital information storage. This is because Yotta can handle numbers of any size.

Features

  • Dynamic precision arithmetic
  • Traits for using operators
  • Floating point arithmetic
  • Easy to use
  • no_std

Usage

First, add Yotta to your Cargo.toml:

cargo add yotta

Then, you can use Yotta in your project:

use yotta::Yotta;

fn main() {
    let num1 = Yotta::new("123", 32);
    let num2 = Yotta::new("456", 32);

    let sum = num1.clone() + num2.clone();
    let diff = num2.clone() - num1.clone();

    assert_eq!(sum, Yotta::new("579", 32));
    assert_eq!(diff, Yotta::new("333", 32));
}

License

Yotta is licensed under the Protected Work License (PWL) v1.0. This license is designed to protect open source software from being paywalled without restricting commercial use. It also implements the MIT License.