Python round() is an inbuilt function that returns the floating-point number rounded off to the given digits after the decimal point. The round() method rounds off to a given number of digits and returns a floating-point number, if no number of digits is provided for round off, it rounds off a number to the nearest integer.

**Python Round Example**

Python round() function returns the floating-point number that is the rounded version of a specified number, with a specified number of decimals.

The syntax of the **Python round() function** is the following.

`round(number, digits)`

The round() method takes two parameters:

**number** – the number that is to be rounded.**ndigits (Optional)** – the number up to which the given number is to be rounded.

## Return

It rounds-off a number and returns the value as output.

## Python round() Function Example

**Example 1:**

This example shows working of the round() function in Python:

```
# for integers
print(round(10))
# for floating point
print(round(10.8))
# even choice
print(round(6.6))
```

Output:

```
10
11
7
```

**Example 2:**

This example shows round-off a number to given n digits places:

```
print(round(2.665, 2))
# cannot be represented exactly as a float
print(round(2.675, 2))
```

Output:

```
2.67
2.67
```

#python #python round