# StyleFloat

> Creates from either a float or a StyleKeyword.

## Definition

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

## StyleFloat(float)

Creates from either a float or a [StyleKeyword](/engine/6000.6/script-reference/unityengine/uielements/stylekeyword.md).

```csharp
public StyleFloat(float v)
```

### Parameters

**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)):&#x20;

## StyleFloat(StyleKeyword)

Creates from either a float or a [StyleKeyword](/engine/6000.6/script-reference/unityengine/uielements/stylekeyword.md).

```csharp
public StyleFloat(StyleKeyword keyword)
```

### Parameters

**** (\[StyleKeyword]\(/engine/6000.6/script-reference/unityengine/uielements/stylekeyword)):&#x20;
