Added decimal handling to numberShorten

This commit is contained in:
bluesaxman 2021-06-17 16:35:12 -06:00
parent 7036c5e7a6
commit 5439fa2559

View File

@ -93,7 +93,7 @@ function numberShorten (Value) {
level++; level++;
number = Math.round(number)/1000; number = Math.round(number)/1000;
} }
return number+unit[level]; return Math.floor(number)+unit[level];
} }
function buttonAdd (ParentID,ID,Label,Action,Class,Element) { function buttonAdd (ParentID,ID,Label,Action,Class,Element) {