refactor(probation): replace Math.round with Math.trunc
All checks were successful
Build & Deploy on Dev / build (push) Successful in 2m50s
All checks were successful
Build & Deploy on Dev / build (push) Successful in 2m50s
This commit is contained in:
parent
4dfc9bf4d6
commit
34d39c7215
2 changed files with 2 additions and 2 deletions
|
|
@ -228,7 +228,7 @@ const score5 = computed(() => {
|
|||
Number(other_training_percent.value)) /
|
||||
(isSelectionPartfour.value ? 4 : 3);
|
||||
|
||||
const total = Math.round(rawTotal);
|
||||
const total = Math.trunc(rawTotal);
|
||||
|
||||
develop_result.value = total > 60 ? 1 : 0;
|
||||
|
||||
|
|
|
|||
|
|
@ -255,7 +255,7 @@ const score5 = computed(() => {
|
|||
Number(other_training_percent.value)) /
|
||||
(isSelectionPartfour.value ? 4 : 3);
|
||||
|
||||
const total = Math.round(rawTotal);
|
||||
const total = Math.trunc(rawTotal);
|
||||
|
||||
develop_result.value = total > 60 ? 1 : 0;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue