# Integer

*noun*

say it: **“IN-tih-jer”** **/ˈɪntɪdʒər/**

A whole number, positive, negative or zero, with no decimal part, such as 42 or -7; in Python its type is int.

## What is an **integer**?

Mathematically an **integer** is any whole number that
can be positive or negative. Every programming language
has support for integers.

```JavaScript
 // javscript has a number data type for all integers
let bignumber = 1234567890;
```
```python
# python also allows any number to be stored in a variable
bignumber = 123456789
```

```csharp
// c# and java have multiple integer data types
byte, short, int, long
```

```sql
-- SQL also supports multiple integer data types
BIT, BYTE, SHORT, INT, INTEGER, BIGINT
```

## In a sentence

- “The number of tickets is an **integer**: you can't buy half a ticket.”
- “int("12") turns the text "12" into the **integer** 12.”

Level: Novice · [More General terms at this level](https://www.ask-codey.com/glossary?category=general&level=1)

Updated: November 19, 2026

Source: https://www.ask-codey.com/glossary/integer
