Int1 & int2&int4& int8?

what’s the differance between
int1 & int2&int4& int8 in sql tag?? :scratch:

1 byte, 2 bytes, 4 bytes, 8 bytes. Byte, Short, Int, Long. 8-bit, 16-bit, 32-bit, 64-bit.

Int1 : 0-255
Int2 : -32767 - 32767
Int4 : -2147483647 - 2147483647
Int8 : lots!

Depending on sign bits and whatnot, but that’s typical.

[quote=“Dravik”]Int1 : 0-255
Int2 : -32767 - 32767
Int4 : -2147483647 - 2147483647
Int8 : lots!

Depending on sign bits and whatnot, but that’s typical.[/quote]

Int1 is actually [-128, 127], but the rest look fine. SQLTags uses signed types, for now…

Some day we’ll get unsigned and array support implemented :blush:

Ahh, Fair enough, I never use Int1 :smiley:

3 posts were split to a new topic: Problem with OPC tag