# Percent(float)

> Creates a percentage Length from a float.

## Definition

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

```csharp
public static Length Percent(float value)
```

### Parameters

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

### Returns

| Type                                                                       | Description         |
| -------------------------------------------------------------------------- | ------------------- |
| [Length](/engine/6000.5/script-reference/unityengine/uielements/length.md) | The created length. |
