---
title: roundDown()
slug: rounddown
docTags: 
createdAt: 2021-09-14T17:47:15.000Z
---

Rounds a given `value` to the next smallest `integer`.

### Syntax

`roundDown(number[, places])`

- `number` - the `Number` value to be evaluated.
- `places` - (optional) the number of places of the returned `Number` value.
- **Return type:** [Number](docId\:ucI5tCTfVBhonEJ6ZQijg)&#x20;

### Sample usage

`roundDown(4.5678, 2)` returns `4.56`

`roundDown(4.5678)` returns `4`

### Supported data types

| **Input type**                              | **Return type**                         | **Logic**                                                                                                                                     |
| ------------------------------------------- | --------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
| ****[Number](docId\:ucI5tCTfVBhonEJ6ZQijg)  | [Number](docId\:ucI5tCTfVBhonEJ6ZQijg)  | If a Number value is passed, that Number value will be rounded down to the defined number of decimal places. Defaults to zero decimal places. |
| *Unsupported data types*                    | **[Null](docId\:N9trVqonnBknqL9DrNBP6)  | Unsupported data types return `Null`.                                                                                                         |

