Top: Computers: Programming: Languages: Pascal: Variables: Ordinal Types




[ history ]

Shortint

This type can store numbers in the range -128..127.

Numbers are stored together with their sign.

The size of this type is 8 bits (1 byte).


[ history ]

Integer

Numbers can be in the range -32768..32767.

Numbers are stored together with their byte.

The size of this type is 16 bits (2 bytes).


[ history ]

Longint

Numbers can be in the range -2147483648..2147483647.

Numbers are stored together with their sign.

The size of this type is 32 bits (4 bytes).


[ history ]

Byte

The numbers that can be stored using this type are in the range 0..255.

The sign of the numbers is not stored.

The size of this type is 8 bits (1 byte).


[ history ]

Word

The numbers that can be stored using this type are in the range 0..65535.

The sign of the numbers is not stored.

The size of this type is 16 bits (2 byte).



 All text is available under the terms of the GNU Free Documentation License. (See Copyright Policy for details.) 
© Open-Site Foundation, Inc.
Hosted by Android Technologies, Inc. the medical robotics news source.
Visit our sister sites dmoz.org | mozilla.org | chefmoz.org | musicmoz.org