Closed partyka1 closed 5 years ago
Describe the bug Trying to run to_satoshi on big btc value(ie 2.1 mln), resulted in return value 0. This pull request aims to fix that, mostly by fixing castings and adding bcmul
to_satoshi
0
bcmul
To Reproduce
>>> \Denpa\Bitcoin\to_satoshi('2100') => "210000000000" >>> \Denpa\Bitcoin\to_satoshi('21000') => "2100000000000" >>> \Denpa\Bitcoin\to_satoshi('210000') => "21000000000000" >>> \Denpa\Bitcoin\to_satoshi('2100000') => "0" >>> \Denpa\Bitcoin\to_satoshi('21000000') => "0"
Thank you for your contribution! Sorry for long wait - didn't have enough time to work on this.
no worries! I hope nobody lost any big monies because of it 🙃🙂🙃
Describe the bug Trying to run
to_satoshi
on big btc value(ie 2.1 mln), resulted in return value0
. This pull request aims to fix that, mostly by fixing castings and addingbcmul
To Reproduce