# Editor.ConsoleSystem.GetValueFloat

```csharp
static float GetValueFloat(string name, float defaultValue = 0)
```

Get a convar value as an float if possible.

### Parameters

- `name` (`string`)
- `defaultValue` (`float`), default `0`

### Returns

`float`

Declared in [Editor.ConsoleSystem](/api/Editor.ConsoleSystem).
Assembly: `Sandbox.Tools`.
