long long unsigned int Number::toInt(){
return std::stoull(this->toString());
}
This function fails once long long unsigned int reaches it's maximum value, which is 18,446,744,073,709,551,615.
For stuff like $2\uparrow\uparrow6$, this is unacceptable!
What can we do to fix this?
Rewrite toInt to support huge numbers (maybe a vector?)
Number::toInt()
looks like this:This function fails once
long long unsigned int
reaches it's maximum value, which is 18,446,744,073,709,551,615. For stuff like $2\uparrow\uparrow6$, this is unacceptable!What can we do to fix this?
Rewrite
toInt
to support huge numbers (maybe a vector?)