signoz/frontend/src/lib/convertToNanoSecondsToSecond.ts
Palash Gupta e62e541fc4
FE: added more eslint rule (#2090)
* chore: arrow-body-style func-style is added in the rule

* fix: linting issues fixed

Co-authored-by: Srikanth Chekuri <srikanth.chekuri92@gmail.com>
2023-01-24 18:53:04 +05:30

5 lines
166 B
TypeScript

const convertToNanoSecondsToSecond = (number: number): string =>
parseFloat((number / 1000000).toString()).toFixed(2);
export default convertToNanoSecondsToSecond;