Registry / utility / num-decimal

num-decimal

JSON →
library0.2.5rscratesunverified

Infinite precision decimals with fair rounding and other gimmicks based on num-rational.

# Cargo.toml [dependencies] num-decimal = "0.2.5"
INSTALL
IMPORT
SIG · NUM-DECIMAL
N
num-decimal
utilityrustv0.2.5
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.

Decimal
use num_decimal::Decimal;

Parse decimal strings and perform arithmetic with infinite precision.

use num_decimal::Decimal; fn main() { let a: Decimal = "1.5".parse().unwrap(); let b: Decimal = "2.3".parse().unwrap(); let sum = a + b; println!("Sum: {}", sum); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.2.5latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Amazon
1
Resources
num-decimal — cargo add num-decimal · libregistry