# trunc proc

Source: https://ref.dm-lang.org/proc/trunc
Added in BYOND 515.

### Format
> `trunc(A)`

### Returns
> truncated A

### Args
> A: A number, pixloc, or vector.

Returns the integer part of the number A. That is, this rounds toward 0 to an integer.

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

usr << trunc(-1.45) // outputs -1
```

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