# StringToValue(string)

> Converts a string to a double.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.UIElements](/engine/6000.6/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule

```csharp
protected override double StringToValue(string str)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The string to convert.

### Returns

| Type                                                           | Description                        |
| -------------------------------------------------------------- | ---------------------------------- |
| [double](https://learn.microsoft.com/dotnet/api/system.double) | The double parsed from the string. |
