pull/5098/head
tugcekucukoglu 2024-01-12 15:26:28 +03:00
parent 1d106ea054
commit 1a8ffe6f0a
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ export default {
percent(meter) {
const percentOfItem = ((meter - this.min) / (this.max - this.min)) * 100;
return Math.max(0, Math.min(100, percentOfItem));
return Math.round(Math.max(0, Math.min(100, percentOfItem)));
},
percentValue(meter) {
return this.percent(meter) + '%';