BigInteger::isZero() question


#1

Hi,

I was wondering in which cases BigInteger::isZero() returns true. It says in the documentation “Returns true if no bits are set”. Does it mean it would return true if you define a BigInteger like this: (Defining a BitInteger 0)

Are there more cases where it might return true?

Thanks,


#2

Yes, that’s zero, of course… Not sure I understand the confusion - if the BigInteger contains no bits, then it’s zero (?)


#3

I thought that If I used for example:

BigInteger val; val.parseString("", 16);

it would handle different from:

Anyway, thanks Jules