pub fn scale_data_value(x: U256, decimals: usize, precision: usize) -> f64Expand description
Scale a U256 value representing a fixed number of decimals into a value that fits a f64 (discarding some precision)
ยงArguments
x- U256 valuedecimals- Number of decimals represented byxprecision- Desired precision of the output