# double

*noun*

say it: **“DUB-ul”** **/ˈdʌbəl/**

Java's everyday type for numbers that can have a decimal part, such as prices, averages and measurements.

## What is **double** in Java?

**double** — A primitive type for numbers that can include a fractional part.

```java
class Order {
    int itemCount = 3;
    double price = 4.50;
    char size = 'M';
    boolean paid = true;
}
```

## In a sentence

- “The average grade came out as 87.5, so I stored it in a **double** instead of an int.”

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

Updated: October 26, 2026

## In other subjects

- [double in C#](https://www.ask-codey.com/glossary/double-c-sharp)

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