Registry / utility / num-bigint

num-bigint

JSON →
library0.4.6rscratesunverified

Big integer implementation for Rust.

# Cargo.toml [dependencies] num-bigint = "0.4.6"
INSTALL
IMPORT
SIG · NUM-BIGINT
N
num-bigint
utilityrustv0.4.6
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.

BigInt
use num_bigint::BigInt;

Add two large integers using BigInt.

use num_bigint::BigInt; fn main() { let a = BigInt::from(12345678901234567890u128); let b = BigInt::from(98765432109876543210u128); let sum = a + b; println!("{}", sum); }
Debug
Known issues
gotchaPerformance can be slow for very large numbers or many operations
fix
Consider using num-bigint-dig for cryptographic workloads or gmp-mpfr-sys for GMP bindings
affects: >=0.4.0
Upgrade
Version history
0.4.6latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
num-bigint — cargo add num-bigint · libregistry