Unsigned var in C

BlitzMax Forums/BlitzMax Beginners Area/Unsigned var in C

Chroma(Posted 2005) [#1]
When I see a line like:
 unsigned a= 57320193

in C, what type of var would I use in BMax? I tried a short (unsigned) but it truncated the number. And a long is considered a 'signed' var.


TMyke(Posted 2005) [#2]
unsigned short-> 0 <> 65535
int -> -2147483648 <> +2147483647

for you, therefore, -> var:int (or var%) = 57320193


Yan(Posted 2005) [#3]
Can't you use a long and truncate?

It would help if you explained what you're trying to achieve. :o)