Added a function in the BigInt class to determine the number of digits based on a given radix.