#decimal #decimal128 #decmathlib-rs

decmathlib-rs

Port of the Intel Decimal Floating-Point Math Library decimal128 type to Rust

7 unstable releases

Uses new Rust 2024

0.4.0 Mar 2, 2025
0.3.3 Sep 2, 2024
0.3.2 Aug 20, 2024
0.3.0 Mar 29, 2024
0.1.0 Mar 7, 2024

#16 in #decimal

Download history 103/week @ 2024-12-08 34/week @ 2024-12-15 4/week @ 2024-12-22 20/week @ 2024-12-29 19/week @ 2025-01-05 10/week @ 2025-01-12 3/week @ 2025-02-02 140/week @ 2025-03-02 4/week @ 2025-03-09 1/week @ 2025-03-23

145 downloads per month

MIT license

2MB
31K SLoC

decmathlib-rs

Port of the Intel Decimal Floating-Point Math Library decimal128 type to Rust.

Rust learning project.

Badges

MIT License Build Status GitHub last commit Downloads

Acknowledgements

License

MIT

Build Locally

Clone the project

  git clone https://github.com/carlosga/decmathlib-rs

Go to the project directory

  cd decmathlib-rs

Build (Cargo)

  cargo build

Running Tests

To run tests, run the following command

  cargo test

To include the serde serialization/deserialization tests, run the following command

  cargo test --features serde

Dependencies

~0–11MB
~143K SLoC