Byte

From SCAR Divi Manual
Revision as of 15:53, 2 July 2011 by Freddy (talk | contribs) (Created page with "==Description== Byte is a basic type which can hold an 8-bits unsigned integer value (0..255), any value outside of the range that is stored in it will overflow back into the ran...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Description

Byte is a basic type which can hold an 8-bits unsigned integer value (0..255), any value outside of the range that is stored in it will overflow back into the range.

Example

var
  Value: Byte;

begin
  Value := 0;
  WriteLn(Value);
  Value := 255;
  WriteLn(Value);
  Value := -1;
  WriteLn(Value);
  Value := 256;
  WriteLn(Value);
end.

Output:

0
255
255
0

See Also