# FormatHz(int)

> Formats a given frequency as a string in the format "X Hz" or "X kHz".

## Definition

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

```csharp
public static string FormatHz(int frequency)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): Frequency value to format.

### Returns

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