integer bigger than 32
hi, i'm sending intger numbers c# arduino. each number send character character , in order arduino know exacy integer value i'm sendin value in brakets such <123> way arduino tell integer value 123. know problem want send integer 65600
int hold number smaller 32768
i tried change variable int = inint to long = inint can not make work. below code
#
int hold number smaller 32768
i tried change variable int = inint to long = inint can not make work. below code
#
quote
int hold number smaller 32768
more correct [glow]int[/glow]: "integers primary datatype number storage, , store 2 byte value. yields range of -32,768 32,767 (minimum value of -2^15 , maximum value of (2^15) - 1). "
however [glow]unsigned int [/glow]will hold: "unsigned ints (unsigned integers) same ints in store 2 byte value. instead of storing negative numbers store positive values, yielding useful range of 0 65,535 (2^16) - 1). "
likewise long , unsigned long have different value ranges can hold.
your code didn't post can't comment on it.
lefty
Arduino Forum > Forum 2005-2010 (read only) > Software > Interfacing > integer bigger than 32
arduino
Comments
Post a Comment