mirror of
https://forge.murkfall.net/bluesaxman/blue.js.git
synced 2026-03-13 09:34:20 -06:00
Added decimal handling to numberShorten
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user