dapptools icon indicating copy to clipboard operation
dapptools copied to clipboard

`seth --to-fix`: numerical result out of range

Open d-xo opened this issue 4 years ago • 0 comments

If I call seth --to-fix with a large number, and a <decimals> arg that is larger than the number of digits in the input I get an error from printf:

> seth --to-fix 256 $(seth --max-uint)
0.printf: ‘0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff’: Numerical result out of range
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000009223372036854775807

d-xo avatar Sep 21 '21 18:09 d-xo