Registry / utility / bigdecimal

bigdecimal

JSON →
library0.4.10rscratesunverified

Arbitrary precision decimal numbers for Rust.

# Cargo.toml [dependencies] bigdecimal = "0.4.10"
INSTALL
IMPORT
SIG · BIGDECIMAL
B
bigdecimal
utilityrustv0.4.10
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

BigDecimal
use bigdecimal::BigDecimal;

Creates and adds two arbitrary-precision decimal numbers.

use bigdecimal::BigDecimal; use std::str::FromStr; fn main() { let a = BigDecimal::from_str("3.14159").unwrap(); let b = BigDecimal::from(2); let sum = a + b; println!("Sum: {}", sum); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.4.10latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Meta
1
Resources
bigdecimal — cargo add bigdecimal · libregistry