# half

> Returns a half value constructed from a half values.

## Definition

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

## half(half)

Returns a half value constructed from a half values.

```csharp
public static half half(half x)
```

### Parameters

**** (\[half]\(/engine/6000.7/script-reference/unity/mathematics/half)): The input half value to copy.

### Returns

| Type                                                              | Description                 |
| ----------------------------------------------------------------- | --------------------------- |
| [half](/engine/6000.7/script-reference/unity/mathematics/half.md) | The constructed half value. |

## half(float)

Returns a half value constructed from a float value.

```csharp
public static half half(float v)
```

### Parameters

**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): The single precision float value to convert to half.

### Returns

| Type                                                              | Description                 |
| ----------------------------------------------------------------- | --------------------------- |
| [half](/engine/6000.7/script-reference/unity/mathematics/half.md) | The constructed half value. |

## half(double)

Returns a half value constructed from a double value.

```csharp
public static half half(double v)
```

### Parameters

**** (\[double]\(https\://learn.microsoft.com/dotnet/api/system.double)): The double precision float value to convert to half.

### Returns

| Type                                                              | Description                 |
| ----------------------------------------------------------------- | --------------------------- |
| [half](/engine/6000.7/script-reference/unity/mathematics/half.md) | The constructed half value. |
