Allow 3dp for ship and module discounts

This commit is contained in:
Cmdr McDonald
2016-11-05 13:59:23 +00:00
parent be45637435
commit 07df44a907
3 changed files with 9 additions and 4 deletions

View File

@@ -27,7 +27,7 @@ function normalizePercent(val) {
if (val === '' || isNaN(val)) {
return 0;
}
val = Math.round(val * 100) / 100;
val = Math.round(val * 1000) / 1000;
return val >= 100 ? 100 : val;
}
@@ -512,4 +512,4 @@ export default class Header extends TranslatedComponent {
);
}
}
}