Added decimal handling to numberShorten
This commit is contained in:
parent
7036c5e7a6
commit
5439fa2559
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user