Unsigned var in C
BlitzMax Forums/BlitzMax Beginners Area/Unsigned var in C
| ||
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. |
| ||
unsigned short-> 0 <> 65535 int -> -2147483648 <> +2147483647 for you, therefore, -> var:int (or var%) = 57320193 |
| ||
Can't you use a long and truncate? It would help if you explained what you're trying to achieve. :o) |