fixed numbershorten checks with typeof
This commit is contained in:
parent
8595482c6b
commit
b05415cb29
@ -87,8 +87,8 @@ function titledContainer (ParentID,ID,Class,Element,Position,Title) {
|
||||
|
||||
function numberShorten (Value,Accuricy) {
|
||||
var level = 0;
|
||||
var number = "number" == Value ? Value : 0;
|
||||
var places = "number" == Accuricy ? Accuricy : 3;
|
||||
var number = "number" == typeof Value ? Value : 0;
|
||||
var places = "number" == typeof Accuricy ? Accuricy : 3;
|
||||
var unit = ["","k","M","B","T","q","Q","s","S","O","N","d","Ud","Dd","Td","qd","Qd","sd","Sd","Od","Nd","v","Uv","Dv","Tv","qv","Qv","sv","Sv","Ov","Nv","t","Ut","Dt","Tt","qt","Qt","st","St","Ot","Nv","c","uc","dc","Tc","Dc","Uc","vc","Sc","Oc","Nc","STOP"];
|
||||
while (999<number) {
|
||||
level++;
|
||||
|
Loading…
x
Reference in New Issue
Block a user