mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
38 lines
1.0 KiB
Markdown
38 lines
1.0 KiB
Markdown
|
+++
|
||
|
# -----------------------------------------------------------------------
|
||
|
# Do not edit this file. It is automatically generated by API Documenter.
|
||
|
# -----------------------------------------------------------------------
|
||
|
title = "toFixedScaled"
|
||
|
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||
|
type = "docs"
|
||
|
+++
|
||
|
|
||
|
## toFixedScaled() function
|
||
|
|
||
|
### toFixedScaled() function
|
||
|
|
||
|
<b>Signature</b>
|
||
|
|
||
|
```typescript
|
||
|
export declare function toFixedScaled(value: number, decimals: DecimalCount, scaledDecimals: DecimalCount, additionalDecimals: number, ext?: string): FormattedValue;
|
||
|
```
|
||
|
<b>Import</b>
|
||
|
|
||
|
```typescript
|
||
|
import { toFixedScaled } from '@grafana/data';
|
||
|
```
|
||
|
<b>Parameters</b>
|
||
|
|
||
|
| Parameter | Type | Description |
|
||
|
| --- | --- | --- |
|
||
|
| value | <code>number</code> | |
|
||
|
| decimals | <code>DecimalCount</code> | |
|
||
|
| scaledDecimals | <code>DecimalCount</code> | |
|
||
|
| additionalDecimals | <code>number</code> | |
|
||
|
| ext | <code>string</code> | |
|
||
|
|
||
|
<b>Returns:</b>
|
||
|
|
||
|
`FormattedValue`
|
||
|
|