# shz_vec4_round

Source: https://sh4zam.com/api/vector/shz_vec4_round/

```c
SHZ_INLINE shz_vec4_t shz_vec4_round(shz_vec4_t vec) SHZ_NOEXCEPT;
```

Returns a 4D vector whose components are the rounded values of the given vector's components.

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `vec` | `shz_vec4_t` |  |

## Returns

`shz_vec4_t`

## Availability

- **C++ equivalent:** [`shz::vec4::round`](https://sh4zam.com/api/cpp/vec4/#round)
- **Type-generic form:** [`shz_vec_round()`](https://sh4zam.com/api/vector/shz_vec_round/)
- **Back-ends:** SH4: shared C implementation · SW: portable C · SPU: shared C implementation
- **Defined in:** [`sh4zam/shz_vector.h:216`](https://github.com/gyrovorbis/sh4zam/blob/ba1e30c88d49df0311870b229e1dd860ef26c477/include/sh4zam/shz_vector.h#L216)
- **Module:** [Vector](https://sh4zam.com/api/vector/), section "Component-wise Operations"
