forge_fmt::solang_ext::ast_eq

Function to_num_reversed

Source
fn to_num_reversed(string: &str) -> U256
Expand description

Helper to convert the fractional part of a number into a comparable one. This will reverse the number so that 0’s can be ignored