Séparation de l'Actor Entités
This commit is contained in:
@ -63,8 +63,8 @@ export class Misc {
|
||||
|
||||
static keepDecimals(num, decimals) {
|
||||
if (decimals <= 0 || decimals > 6) return num;
|
||||
const decimal = Math.pow(10, parseInt(decimals));
|
||||
return Math.round(num * decimal) / decimal;
|
||||
const power10n = Math.pow(10, parseInt(decimals));
|
||||
return Math.round(num * power10n) / power10n;
|
||||
}
|
||||
|
||||
static getFractionHtml(diviseur) {
|
||||
|
Reference in New Issue
Block a user