Data type int and long, anything in between?

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.

No.
Have you tried "unsigned int" (0..65535)?

Yep.
I though maybe I could specify a double int or something. :slight_smile:

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
Minimum 0

not in between and an int!

Bebbetufs:
...I need to hold a large number, but long seems like overkill.

Bebbetufs:
...double int...

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.

Regards,

Dave

Ok thanks for being so clear.

B