Page 1 of 1

What does the "Z" signify ?

Posted: Fri Dec 11, 2020 8:33 pm
by iain wilkie
I know this is probably a stupid question but I cannot find the answer anywhere !

What does the "Z" signify in the Properties Settings .... see attached screenshot
Screen.png
Screen.png (37.05 KiB) Viewed 2112 times
.
I also note in Flowcode 9 in can have a red "+" associated with it ??

Iain

Re: What does the "Z" signify ?

Posted: Fri Dec 11, 2020 8:52 pm
by chipfryer27
Hi

As far as I am aware it means the variable type, in this case an integer value between -32768 and +32767.

Regards

Re: What does the "Z" signify ?

Posted: Fri Dec 11, 2020 9:01 pm
by medelec35
Hi Ian
The Z (Z meaning integer as chipfryer27 correctly said) without a + sign is an signed integer, with a range is from -32768 to 32767
The + just means you can't have a negative number, only 0 or positive.
If the Z has a + then it's a unsigned integer, with a range is from 0 to 65535
The notation Z for integer comes from the German word Zahlen, which means "numbers".
So as the Z in your case is a signed you can only have a range from -32768 to 32767.

Re: What does the "Z" signify ?

Posted: Fri Dec 11, 2020 9:37 pm
by iain wilkie
Cheers Martin, great explanation 👍

Iain

Re: What does the "Z" signify ?

Posted: Sat Dec 12, 2020 10:33 pm
by medelec35
Your welcome Ian. :)