Name

ShortInt Type

Syntax

type ShortInt = -128..127;

Description

The ShortInt type defines an 8-bit signed integer.

Tips and Tricks

  • C, C++, and Java programmers must take care because ShortInt is not equivalent to the short type in these other languages. The short type is more closely akin to Delphi’s SmallInt type.

  • See Integer for more information about integer types.

See Also

Byte Type, Integer Type

Get Delphi in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.