mirror of
https://github.com/SigNoz/signoz.git
synced 2025-12-23 10:26:40 +00:00
7 lines
168 B
TypeScript
7 lines
168 B
TypeScript
|
|
export const toFixed = (input: number, fixedCount: number) => {
|
||
|
|
if (input.toString().split('.').length > 1) {
|
||
|
|
return input.toFixed(fixedCount);
|
||
|
|
}
|
||
|
|
return input;
|
||
|
|
};
|