# FLOOR

> FLOOR function in StackQL: round a numeric argument down to the nearest integer.

Source: https://stackql.io/language-spec/functions/math/floor

Rounds a numeric argument down to the nearest integer.  

See also:  
[[`SELECT`]](/language-spec/select) 

* * * 

## Syntax

```sql
SELECT FLOOR(numeric_expression) FROM <multipartIdentifier>;
```

## Arguments

__*numeric_expression*__  
An expression of the exact numeric or approximate numeric data type category.

## Return Value(s)
Returns the largest integer less than or equal to the specified numeric expression.

* * *

## Examples

### Round down a floating point number to the closest (smaller) integer

```sql
SELECT name, timeCreated,
floor(julianday('now')-julianday(timeCreated)) as days_since_ceiling
FROM google.storage.buckets WHERE project = 'stackql';
```
