# Division

*noun*

say it: **“dih-VIZH-un”** **/dɪˈvɪʒən/**

Dividing one number by another with /; with two whole numbers the result is whole and the remainder is dropped.

What is the value of **ticketsPerPerson** after 
this code is executed?

```csharp
int tickets = 5;
int people = 2;

int ticketsPerPerson = tickets / people;
```

## 2
Since both the numerator and denominator are
integers, the statement on line 4 performs
integer division. The remainder or decimal code
is discarded and only the integer portion of the
answer is returned.

## In a sentence

- “Integer **division** gave me 3 for 7 / 2, so I made one of them a decimal.”

Level: Apprentice · [More C# terms at this level](https://www.ask-codey.com/glossary?category=c-sharp&level=2)

Updated: November 9, 2026

## In other subjects

- [Division in Java](https://www.ask-codey.com/glossary/division)

Source: https://www.ask-codey.com/glossary/division-c-sharp-java
