# round proc

Source: https://ref.dm-lang.org/proc/round

### Format
- `round(A)`
- `round(A,B)`


### Returns
> rounded A

### Args
- `A`: A number, pixloc, or vector.
- `B`: The nearest multiple to round A.


The first format returns the floor of A (the largest integer less than or equal to A), and has been deprecated in favor of `floor(A)`. The second format rounds A to the nearest multiple of B.

```dm /round/
usr << round(1.45) // outputs 1

usr << round(-1.45) // outputs -2

usr << round(1.45,1.5) // outputs 1.5
```

If A is a vector, B can also be a vector to round each component separately.

If A is a pixloc, only the x and y portions will be considered. B may be a vector.

### See also
- [floor proc](https://ref.dm-lang.org/proc/floor.md)
- [ceil proc](https://ref.dm-lang.org/proc/ceil.md)
- [trunc proc](https://ref.dm-lang.org/proc/trunc.md)
- [fract proc](https://ref.dm-lang.org/proc/fract.md)
- [sign proc](https://ref.dm-lang.org/proc/sign.md)
