# asint

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

## Definition

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

## asint(uint)

Returns the bit pattern of a uint as an int.

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

### Parameters

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

### Returns

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

## asint(uint2)

Returns the bit pattern of a uint2 as an int2.

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

### Parameters

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

### Returns

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

## asint(uint3)

Returns the bit pattern of a uint3 as an int3.

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

### Parameters

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

### Returns

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

## asint(uint4)

Returns the bit pattern of a uint4 as an int4.

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

### Parameters

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

### Returns

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

## asint(float)

Returns the bit pattern of a float as an int.

```csharp
public static int asint(float x)
```

### Parameters

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

### Returns

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

## asint(float2)

Returns the bit pattern of a float2 as an int2.

```csharp
public static int2 asint(float2 x)
```

### Parameters

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

### Returns

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

## asint(float3)

Returns the bit pattern of a float3 as an int3.

```csharp
public static int3 asint(float3 x)
```

### Parameters

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

### Returns

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

## asint(float4)

Returns the bit pattern of a float4 as an int4.

```csharp
public static int4 asint(float4 x)
```

### Parameters

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

### Returns

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