Short integer values can be positive whole numbers, negative whole numbers, and 0. These generally take less memory to store than their Long integers and are popular in representing the index of an array. This type is commonly referred to simply as an Integer.
Language |
Comments |
---|---|
VBScript |
The VBScript (short) Integer type contains an integer in the range -32,768 to 32,767. |
JScript |
JScript uses a generic "number" data type which corresponds to integer values as well as floating point values. There is no specific Short integer type in JScript. |
PerlScript |
PerlScript uses the int type to represent both short and long integers. |
Python |
See Long. |
C++ |
See Long. |
C# |
There are a number of data types available:
Note
Most of the time, you will probably use one of the C# types that map to Long instead of integer types. And most Softimage integer types actually map to one of the long values in C#. |
See Comparing Data Types across Languages for a table that compares the short integer data type across several different languages.
For high-level information about how these languages approach data type in general, see one of the following topics: