# asdouble

> Returns the bit pattern of a long as a double.

## Definition

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

## asdouble(long)

Returns the bit pattern of a long as a double.

```csharp
public static double asdouble(long x)
```

### Parameters

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

### Returns

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

## asdouble(ulong)

Returns the bit pattern of a ulong as a double.

```csharp
public static double asdouble(ulong x)
```

### Parameters

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

### Returns

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