# fract proc

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

### Format
> `fract(A)`

### Returns
> fractional part of A

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

Returns the fractional part of the number A, with the same sign. This is everything after the decimal point.

```dm /fract/
usr << fract(1.45) // outputs 0.45

usr << fract(-1.45) // outputs -0.45
```

If A is a pixloc, it will be treated as a vector with just its x and y parts, and the result will be a vector.

### See also
- [trunc proc](https://ref.dm-lang.org/proc/trunc.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)
