# Math Class

say it: **“MATH klas”** **/mæθ klæs/**

A standard class containing constants and static mathematical methods.

## What is **Math Class** in Java?

**Math Class** — A standard class containing constants and static mathematical methods.

```java
class PriceCalculator {
    long roundedPrice(double price) {
        return Math.round(price);
    }
}
```

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

Updated: November 17, 2026

## In other subjects

- [Math Class in C#](https://www.ask-codey.com/glossary/math-class-c-sharp)

Source: https://www.ask-codey.com/glossary/math-class
