add miligram to a better design

This commit is contained in:
Julien Calixte
2023-07-26 17:43:21 +02:00
parent 00ccbe21a7
commit 1f49b0f755
13 changed files with 159 additions and 63 deletions

View File

@@ -2,7 +2,7 @@ export const getMean = (data: number[]) =>
Math.round(100 * (sumElements(data) / data.length)) / 100
export const getRound = (data: number, total: number) =>
Math.round(100 * (data / total)) / 100
(Math.round(100 * (data / total)) / 100 || 0).toFixed(2)
export const clone = (data: any) => JSON.parse(JSON.stringify(data))