This is documentation for the next version of Grafana. For the latest stable release, go to the latest version.

API Reference@grafana/datatoFixed

toFixed() function

toFixed() function

Signature

export declare function toFixed(value: number, decimals?: DecimalCount): string;

Import

import { toFixed } from '@grafana/data';

Parameters

Parameter Type Description
value number
decimals DecimalCount

Returns:

string