Registry / other / cosmwasm-bignumber

cosmwasm-bignumber

JSON →
library2.2.0rscratesunverified

Bignumber library for CosmWasm smart contracts.

# Cargo.toml [dependencies] cosmwasm-bignumber = "2.2.0"
INSTALL
IMPORT
SIG · COSMWASM-BIGNUMBER
C
cosmwasm-bignumber
otherrustv2.2.0
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.

Decimal256
use cosmwasm_bignumber::Decimal256;

Create a decimal number from a ratio.

use cosmwasm_bignumber::Decimal256; fn main() { let d = Decimal256::from_ratio(1u128, 3u128); println!("Decimal: {}", d); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.2.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
10
Resources
cosmwasm-bignumber — cargo add cosmwasm-bignumber · libregistry