About 1,070,000 results
Open links in new tab
  1. Integer (computer science) - Wikipedia

    In computer science, an integer is a datum of integral data type, a data type that represents some range of mathematical integers. Integral data types may be of different sizes and may or may not be allowed to contain negative values. Integers are commonly represented in a computer as a group of binary digits (bits).

  2. Integers | Definition, Examples & Types | GeeksforGeeks

    Apr 11, 2025 · Integers are a fundamental concept in mathematics, representing a set of whole numbers that includes both positive and negative numbers, along with zero. Its symbol is “Z”. If a set is constructed using all-natural numbers, zero, and negative natural numbers, then that set is referred to as Integer.

  3. Data Types in Programming - GeeksforGeeks

    Mar 26, 2024 · Converting a single data type value—such as an integer int, float, or double—into another data type is known as typecasting. You have the option of doing this conversion manually or automatically. The conversion is done in two ways, automatically by the compiler and manually by a programmer. Type casting is sometimes known as type conversion.

  4. Integer Data TypeProgramming Fundamentals

    The integer data type basically represents whole numbers (no fractional parts). The integer values jump from one value to another. There is nothing between 6 and 7.

  5. Data Types in C - GeeksforGeeks

    Mar 25, 2025 · In this article, we will discuss the basic (primary) data types in C. The integer datatype in C is used to store the integer numbers (any number including positive, negative and zero without decimal part). Octal values, hexadecimal values, and decimal values can also be stored in int data type in C.

  6. A Thorough Explanation of Integers in Programming

    Dec 9, 2024 · What is an Integer? An integer, simply put, is a whole number – positive, negative, or zero. For example: 5, -2, 0, 388, -1729 are all integers. Meanwhile, numbers with decimal points like 3.5, -7.82, or 0.001 are not integers. We use integers all the time in the real world – counting discrete or whole objects and quantities.

  7. Integer Definition - freeCodeCamp.org

    Mar 31, 2021 · An integer is a positive or negative whole number, including 0. For example, 5, 0, 321, and -17 are all integers, while 5.2, -101.88, and 3⁄4 are not. Integers are sometimes called "whole numbers" or "counting numbers".

  8. What is a Data Type? - W3Schools

    This is done using functions specific to the programming language we are using. For example, if we have a string variable a that contains a number "18", we must cast it to an integer before we can use it in calculations, like this: a = '18' b = int(a) + 3 const a = '18'; const b = parseInt(a) + 3; String a = "18"; int b = Integer.parseInt(a) + 3;

  9. Data Types in C - Integer, Floating Point, and Void Explained

    Feb 1, 2020 · Integers are whole numbers. They can be positive, negative, or zero. Numbers like -321, 497, 19345, and -976812 are all perfectly valid integers, but 4.5 is not because 4.5 is not a whole number. Floating point numbers are numbers with a decimal.

  10. Integer datatype in C: int, short, long and long long

    In C programming language, integer data is represented by its own datatype known as int. It has several variants which differs based on memory consumption includes: In C, one can define an integer variable as: int a = 1; . short b = 1; long c = 1; long long d = 1;

Refresh