4

When I do the following on the geth command line:

20000000000000000000-19999999999999999989

it returns 0

I'm guessing this is because of a 64 bit limit on ints.

Is there a way to get it to return 11?

4
 web3.toBigNumber("20000000000000000000").minus(web3.toBigNumber("19999999999999999989"))

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.