# FormatLengthInSeconds(float)

> Formats a given float duration as a string in the format "X.XXX s".

## Definition

* **Type:** Method
* **Namespace:** [Unity.ProjectAuditor.Editor.Utils](/engine/6000.5/script-reference/unity/projectauditor/editor/utils.md)
* **Assembly:** UnityEditor

```csharp
public static string FormatLengthInSeconds(float length)
```

### Parameters

**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): Length value to format.

### Returns

| Type                                                           | Description                                                          |
| -------------------------------------------------------------- | -------------------------------------------------------------------- |
| [string](https://learn.microsoft.com/dotnet/api/system.string) | A string representation of the input value as a duration in seconds. |
