Expand description
Mathematical utilities for blockchain value conversion.
This module provides functions for converting large integer types (U256, I256) used in blockchain applications to floating-point values, accounting for token decimal places and precision requirements.
Functions§
- convert_
i256_ to_ f64 - Convert an alloy’s I256 value to f64, accounting for token decimals.
- convert_
u256_ to_ f64 - Convert an alloy’s U256 value to f64, accounting for token decimals.