Difference between revisions of "Word"
From SCAR Divi Manual
(Created page with "==Description== Word is a basic type which can hold a 16-bits unsigned integer value (0..65535), any value outside of the range that is stored in it will overflow back into the r...") |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | ==Availability== | ||
+ | SCAR Divi 3.00 > Current | ||
+ | |||
==Description== | ==Description== | ||
− | Word is a basic type which can hold a 16-bits unsigned integer value (0..65535), any value outside of the range that is stored in it will overflow back into the range. | + | Word is a basic type which can hold a 16-bits unsigned integer value (0..65535), any value outside of the range that is stored in it will overflow back into the range. [[SmallInt]] is the signed version of this type. |
==Example== | ==Example== | ||
Line 27: | Line 30: | ||
==See Also== | ==See Also== | ||
*[[SmallInt]] | *[[SmallInt]] | ||
+ | *[[Byte]] | ||
+ | *[[Cardinal]] | ||
[[Category:Types]] | [[Category:Types]] | ||
[[Category:Basic Types]] | [[Category:Basic Types]] |
Latest revision as of 16:00, 2 July 2011
Contents
Availability
SCAR Divi 3.00 > Current
Description
Word is a basic type which can hold a 16-bits unsigned integer value (0..65535), any value outside of the range that is stored in it will overflow back into the range. SmallInt is the signed version of this type.
Example
var Value: Word; begin Value := 0; WriteLn(Value); Value := 65535; WriteLn(Value); Value := -1; WriteLn(Value); Value := 65536; WriteLn(Value); end.
Output:
0 65535 65535 0