mirror of
https://github.com/SigNoz/signoz.git
synced 2025-12-22 18:06:35 +00:00
* chore: arrow-body-style func-style is added in the rule * fix: linting issues fixed Co-authored-by: Srikanth Chekuri <srikanth.chekuri92@gmail.com>
7 lines
181 B
TypeScript
7 lines
181 B
TypeScript
export function toFixed(input: number, fixedCount: number): number | string {
|
|
if (input.toString().split('.').length > 1) {
|
|
return input.toFixed(fixedCount);
|
|
}
|
|
return input;
|
|
}
|