# RoundToInt

> Converts a Vector3 to a Vector3Int by doing a Round to each value.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine](/engine/6000.7/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule

## RoundToInt(Vector3)

Converts a [Vector3](/engine/6000.7/script-reference/unityengine/vector3.md) to a [Vector3Int](/engine/6000.7/script-reference/unityengine/vector3int.md) by doing a Round to each value.

```csharp
public static Vector3Int RoundToInt(Vector3 v)
```

### Parameters

**** (\[Vector3]\(/engine/6000.7/script-reference/unityengine/vector3)): The Vector3 to convert.

### Returns

| Type                                                                    | Description                            |
| ----------------------------------------------------------------------- | -------------------------------------- |
| [Vector3Int](/engine/6000.7/script-reference/unityengine/vector3int.md) | The converted Vector3 as a Vector3Int. |

### Remarks

As there is a conversion of float to integer, there is a loss of precision.

## RoundToInt(Vector3)

Converts a [Vector3](/engine/6000.7/script-reference/unityengine/vector3.md) to a [Vector3Int](/engine/6000.7/script-reference/unityengine/vector3int.md) by doing a Round to each value.

```csharp
public static Vector3Int RoundToInt(in Vector3 v)
```

### Parameters

**** (\[Vector3]\(/engine/6000.7/script-reference/unityengine/vector3)): The Vector3 to convert.

### Returns

| Type                                                                    | Description                            |
| ----------------------------------------------------------------------- | -------------------------------------- |
| [Vector3Int](/engine/6000.7/script-reference/unityengine/vector3int.md) | The converted Vector3 as a Vector3Int. |

### Remarks

As there is a conversion of float to integer, there is a loss of precision.
