I'm just curious if there is a data type besides long which can hold more than an int. I need to hold a large number, but long seems like overkill.
Have you tried "unsigned int" (0..65535)?
I though maybe I could specify a double int or something. :)
I though maybe I could specify a double int or something
A "double int" would be a long.
What are the minimum and maxiumum value you want to store?
Maximum 150 000
not in between and an int!
...I need to hold a large number, but long seems like overkill.
With the Arduino compiler, avr-gcc, an int
occupies two bytes and a long
occupies four bytes. There is no built-in data type that occupies more than two bytes and fewer than four bytes. Period. Full stop.
Ok thanks for being so clear.