the nearest ticks around a number

## Usage

`nearest_tick(x, side = "both", level = NULL, div = 2)`

## Arguments

- x
number

- side
default as 'both', can be 'both|left|right'

- level
the level of ticks, such as 1, 10, 100, etc.

- div
number of divisions

## Value

nearest tick number

## Examples

```
nearest_tick(3462, level = 10)
#> [1] 3460
```