mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-10-18 17:31:29 +08: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;
|
|
}
|