[O] Default to 2 decimal places

This commit is contained in:
Hykilpikonna
2019-11-09 17:05:06 -05:00
parent 9026b9d3a9
commit 96ee9e9265
+2 -2
View File
@@ -135,7 +135,7 @@ export class GPAUtils
});
// Return
return score / max * 100;
return +(score / max * 100).toFixed(2);
}
/**
@@ -185,6 +185,6 @@ export class GPAUtils
}
// Add average to the row
return score * 100;
return +(score * 100).toFixed(2);
}
}