Word

From SCAR Divi Manual
Revision as of 16:56, 2 July 2011 by Freddy (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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.

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

See Also