---
title: rint function
description: Learn the syntax of the rint function of the SQL language in Databricks SQL and Databricks Runtime.
canonical_url: https://docs.databricks.com/aws/en/sql/language-manual/functions/rint
---

# `rint` function

**Applies to:** ![check marked yes](https://docs.databricks.com/aws/en/images/icons/check.png) Databricks SQL ![check marked yes](https://docs.databricks.com/aws/en/images/icons/check.png) Databricks Runtime

Returns `expr` rounded to a whole number as a `DOUBLE`. This function is a synonym for `round(expr, 0)`.

## Syntax

```
rint(expr)
```

## Arguments

* `expr`: An expression that evaluates to a numeric.

## Returns

A `DOUBLE`.

## Examples

```sql
> SELECT rint(12.3456);
 12.0
```

## Related functions

* [`ceil` function](https://docs.databricks.com/aws/en/sql/language-manual/functions/ceil.md)
* [`ceiling` function](https://docs.databricks.com/aws/en/sql/language-manual/functions/ceiling.md)
* [`floor` function](https://docs.databricks.com/aws/en/sql/language-manual/functions/floor.md)
* [`round` function](https://docs.databricks.com/aws/en/sql/language-manual/functions/round.md)
