|
In lugnet.robotics.rcx.legos, Steve Hassenplug wrote:
> What's the max value for an INT in BrickOS?
>
> Is it +/- 2,147,483,647?
Hi Steve,
Here's a handy table:
TYPE BITS MIN MAX
==========================================
char 8 0 255
unsigned char 8 0 255
signed char 8 -128 127
int 16 -32768 32767
unsigned int 16 0 65535
unsigned 16 0 65535
long 32 -2147483648 2147483647
unsigned long 32 0 4294967295
HTH,
Mark
|
|
Message has 1 Reply:
Message is in Reply To:
3 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
This Message and its Replies on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|