bignum-ig

Crates.iobignum-ig
lib.rsbignum-ig
version0.1.1
created_at2025-08-02 10:13:30.015895+00
updated_at2025-08-03 10:00:03.958173+00
descriptionA Rust implementation for Numbers from ± 10 ^ i64::MIN - 9.999.. * 10 ^ i64::MAX. The Primary Use of this is for Incremental Games.
homepage
repositoryhttps://github.com/veprogames/bignum-ig
max_upload_size
id1778656
size45,192
(veprogames)

documentation

README

bignum-ig

A Rust implementation for Numbers from ± 10 ^ i64::MIN - 9.999.. * 10 ^ i64::MAX. The Primary Use of this is for Incremental Games.

Features

Mathematically correct (as much as I know)

  • Explicit Variants for Zero, Infinities and NaN
  • Comparisons: Infinity != Infinity, NaN != <Anything>
  • Most if not all edge cases are handled: For example, what is Infinity * -Infinity again?

Speed

  • Unnormalizing Methods are exposed, allowing you to squeeze out more speed if needed and if you know what you are doing
  • add, sub, mul, div and some other methods are implemented mutable by default to reduce allocations.
Commit count: 0

cargo fmt