in my recent project I need to store a huge numbers that are much bigger than 32bit integer. Just storing them could be possible as a byte array (I guess). But I also need some basic arythmetic operations with them - in my case multiplications.
Here is my code (simplified):
int senseValue = 8123456; //this value changes up to decades of millions, but fits in 32bit integer int pow3 = pow(senseValue,3); //this cant fit 32 bit integer :( double constant = 0.000000000034; double result = pow3* constant; Serial.print("\nCONVERTED VALUE: "); Serial.print(result);
Is there some effective way to do such operations? I am sure it could be done in byte level calculations, but it would be quite complicated and complete work from scratch.
Thanks for any advice.