Difference between revisions of "Int16"

From Xojo Documentation

m (1 revision)
(Description)
Line 13: Line 13:
 
! width=25%  style="background-color:#e0e0e0" | Range
 
! width=25%  style="background-color:#e0e0e0" | Range
 
|-
 
|-
|[[Int8|Int8]] 
+
| [[Int8|Int8]] 
  
|1
+
| 1
  
|-128 to 127
+
| -128 to 127
  
 
|-
 
|-
|'''Int16'''
+
| [[Int16|Int16]]
|2
+
| 2
  
|-32,768 to 32,767
+
| -32,768 to 32,767
  
 
|-
 
|-
|[[Int32|Int32]] or [[Integer|Integer]]
+
| [[Int32|Int32]] or [[Integer|Integer]]
|4
+
| 4
  
|-2,147,483,648 to 2,147,483,647
+
| -2,147,483,648 to 2,147,483,647
  
 
|-
 
|-
|[[Int64|Int64]]
+
| [[Int64|Int64]]
|8
+
| 8
  
|-2^63 to 2^63-1
+
| -2^63 to 2^63-1
  
 
|-
 
|-
|[[UInt8|UInt8]] or [[Byte|Byte]]
+
| [[UInt8|UInt8]] or [[Byte|Byte]]
|1
+
| 1
  
|0 to 255
+
| 0 to 255
  
 
|-
 
|-
|[[UInt16|UInt16]]
+
| [[UInt16|UInt16]]
|2
+
| 2
  
|0 to 65535
+
| 0 to 65535
  
 
|-
 
|-
|[[UInt32|UInt32]]
+
| [[UInt32|UInt32]]
|4
+
| 4
  
|0 to 4,294,967,295
+
| 0 to 4,294,967,295
  
 
|-
 
|-
|[[UInt64|UInt64]]
+
| [[UInt64|UInt64]]
|8
+
| 8
  
|0 to 2^64-1
+
| 0 to 2^64-1
  
 
|-
 
|-
 
|}
 
|}
 
  
 
=='''See Also'''==
 
=='''See Also'''==

Revision as of 03:57, 24 November 2009


Description

An Int16 is an intrinsic data type in REALbasic. It is a signed integer that uses two bytes of storage. It has a range of -32,768 to 32,767. The default value of an Int16 is 0.

REALbasic offers both signed and unsigned integer data types that use one, two, four, or eight bytes of memory. The following table summaries these data types.

Data Type Number of Bytes Range
Int8  1 -128 to 127
Int16 2 -32,768 to 32,767
Int32 or Integer 4 -2,147,483,648 to 2,147,483,647
Int64 8 -2^63 to 2^63-1
UInt8 or Byte 1 0 to 255
UInt16 2 0 to 65535
UInt32 4 0 to 4,294,967,295
UInt64 8 0 to 2^64-1

See Also

Boolean, Byte, CFStringRef, Color, CString, Currency, Delegate, Double, Int32, Int64, Integer, OSType, PString, Ptr, Short, Single, String, UByte, UInt8, UInt16, UInt32, UInt64, UShort, Variant, WindowPtr, WString data types; -+, *, /, [[<|<]], [[<=|<=]], =, [[>=|>=]], [[>|>]], [[<>|<>]], [[|]], IsNumeric, Mod, Str, Val, Vartype, functions; Dim statement.