+++
# -----------------------------------------------------------------------
# Do not edit this file. It is automatically generated by API Documenter.
# -----------------------------------------------------------------------
title = "toFixed"
keywords = ["grafana","documentation","sdk","@grafana/data"]
type = "docs"
+++

## toFixed() function

### toFixed() function

<b>Signature</b>

```typescript
export declare function toFixed(value: number, decimals?: DecimalCount): string;
```
<b>Import</b>

```typescript
import { toFixed } from '@grafana/data';
```
<b>Parameters</b>

|  Parameter | Type | Description |
|  --- | --- | --- |
|  value | <code>number</code> |  |
|  decimals | <code>DecimalCount</code> |  |

<b>Returns:</b>

`string`

