# asuint

> Returns the bit pattern of an int as a uint.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Mathematics](/engine/6000.7/script-reference/unity/mathematics.md)
* **Assembly:** UnityEngine.MathematicsModule

## asuint(int)

Returns the bit pattern of an int as a uint.

```csharp
public static uint asuint(int x)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The int bits to copy.

### Returns

| Type                                                         | Description                                      |
| ------------------------------------------------------------ | ------------------------------------------------ |
| [uint](https://learn.microsoft.com/dotnet/api/system.uint32) | The uint with the same bit pattern as the input. |

## asuint(int2)

Returns the bit pattern of an int2 as a uint2.

```csharp
public static uint2 asuint(int2 x)
```

### Parameters

**** (\[int2]\(/engine/6000.7/script-reference/unity/mathematics/int2)): The int2 bits to copy.

### Returns

| Type                                                                | Description                                       |
| ------------------------------------------------------------------- | ------------------------------------------------- |
| [uint2](/engine/6000.7/script-reference/unity/mathematics/uint2.md) | The uint2 with the same bit pattern as the input. |

## asuint(int3)

Returns the bit pattern of an int3 as a uint3.

```csharp
public static uint3 asuint(int3 x)
```

### Parameters

**** (\[int3]\(/engine/6000.7/script-reference/unity/mathematics/int3)): The int3 bits to copy.

### Returns

| Type                                                                | Description                                       |
| ------------------------------------------------------------------- | ------------------------------------------------- |
| [uint3](/engine/6000.7/script-reference/unity/mathematics/uint3.md) | The uint3 with the same bit pattern as the input. |

## asuint(int4)

Returns the bit pattern of an int4 as a uint4.

```csharp
public static uint4 asuint(int4 x)
```

### Parameters

**** (\[int4]\(/engine/6000.7/script-reference/unity/mathematics/int4)): The int4 bits to copy.

### Returns

| Type                                                                | Description                                       |
| ------------------------------------------------------------------- | ------------------------------------------------- |
| [uint4](/engine/6000.7/script-reference/unity/mathematics/uint4.md) | The uint4 with the same bit pattern as the input. |

## asuint(float)

Returns the bit pattern of a float as a uint.

```csharp
public static uint asuint(float x)
```

### Parameters

**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): The float bits to copy.

### Returns

| Type                                                         | Description                                      |
| ------------------------------------------------------------ | ------------------------------------------------ |
| [uint](https://learn.microsoft.com/dotnet/api/system.uint32) | The uint with the same bit pattern as the input. |

## asuint(float2)

Returns the bit pattern of a float2 as a uint2.

```csharp
public static uint2 asuint(float2 x)
```

### Parameters

**** (\[float2]\(/engine/6000.7/script-reference/unity/mathematics/float2)): The float2 bits to copy.

### Returns

| Type                                                                | Description                                       |
| ------------------------------------------------------------------- | ------------------------------------------------- |
| [uint2](/engine/6000.7/script-reference/unity/mathematics/uint2.md) | The uint2 with the same bit pattern as the input. |

## asuint(float3)

Returns the bit pattern of a float3 as a uint3.

```csharp
public static uint3 asuint(float3 x)
```

### Parameters

**** (\[float3]\(/engine/6000.7/script-reference/unity/mathematics/float3)): The float3 bits to copy.

### Returns

| Type                                                                | Description                                       |
| ------------------------------------------------------------------- | ------------------------------------------------- |
| [uint3](/engine/6000.7/script-reference/unity/mathematics/uint3.md) | The uint3 with the same bit pattern as the input. |

## asuint(float4)

Returns the bit pattern of a float4 as a uint4.

```csharp
public static uint4 asuint(float4 x)
```

### Parameters

**** (\[float4]\(/engine/6000.7/script-reference/unity/mathematics/float4)): The float4 bits to copy.

### Returns

| Type                                                                | Description                                       |
| ------------------------------------------------------------------- | ------------------------------------------------- |
| [uint4](/engine/6000.7/script-reference/unity/mathematics/uint4.md) | The uint4 with the same bit pattern as the input. |
