# ToString

> Returns a string representation of the quaternion.

## Definition

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

## ToString()

Returns a string representation of the quaternion.

```csharp
public override string ToString()
```

### Returns

| Type                                                           | Description                                  |
| -------------------------------------------------------------- | -------------------------------------------- |
| [string](https://learn.microsoft.com/dotnet/api/system.string) | The string representation of the quaternion. |

## ToString(string, IFormatProvider)

Returns a string representation of the quaternion using a specified format and culture-specific format information.

```csharp
public string ToString(string format, IFormatProvider formatProvider)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The format string.**** (\[IFormatProvider]\(https\://learn.microsoft.com/dotnet/api/system.iformatprovider)): The format provider to use during string formatting.

### Returns

| Type                                                           | Description                                            |
| -------------------------------------------------------------- | ------------------------------------------------------ |
| [string](https://learn.microsoft.com/dotnet/api/system.string) | The formatted string representation of the quaternion. |
