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