0
0
Fork 0

Add graphs and retention metrics to admin dashboard (#16829)

This commit is contained in:
Eugen Rochko 2021-10-14 20:44:59 +02:00 committed by GitHub
parent 959f7fc580
commit 07341e7aa6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
46 changed files with 1650 additions and 257 deletions

View file

@ -69,3 +69,11 @@ export function pluralReady(sourceNumber, division) {
return Math.trunc(sourceNumber / closestScale) * closestScale;
}
/**
* @param {number} num
* @returns {number}
*/
export function roundTo10(num) {
return Math.round(num * 0.1) / 0.1;
}