# Module: floor

## Table of contents

### Math Functions

- [default](floor.md#default)

## Math Functions

### default

▸ **default**(`value`, `nearest?`): `number`

Returns the given value, rounded down to the nearest number provided

#### Parameters

| Name | Type | Default value | Description |
| :------ | :------ | :------ | :------ |
| `value` | `number` | `undefined` |  |
| `nearest?` | `number` | `1` | Value to round nearest to. Defaults to 1 |

#### Returns

`number`

#### Defined in

[src/floor.js:11](https://github.com/Twipped/js-utils/blob/9c196e3/src/floor.js#L11)
