Next: Floating-Point Data Types, Up: Primitive Types [Contents][Index]

Here we describe all the integer types and their basic characteristics. See Integers in Depth, for more information about the bit-level integer data representations and arithmetic.

• Basic Integers | Overview of the various kinds of integers. | |

• Signed and Unsigned Types | Integers can either hold both negative and non-negative values, or only non-negative. | |

• Narrow Integers | When to use smaller integer types. | |

• Integer Conversion | Casting a value from one integer type to another. | |

• Boolean Type | An integer type for boolean values. | |

• Integer Variations | Sizes of integer types can vary across platforms. |