diff --git a/source/Ox/js/Format.js b/source/Ox/js/Format.js index b16f9f22..38de412f 100644 --- a/source/Ox/js/Format.js +++ b/source/Ox/js/Format.js @@ -546,7 +546,7 @@ Ox.formatValue = function(num, str, bin) { val; Ox.forEach(Ox.PREFIXES, function(chr, i) { if (num < Math.pow(base, i + 1) || i == len - 1) { - val = Ox.formatNumber(num / Math.pow(base, i), i) + + val = Ox.formatNumber(num / Math.pow(base, i), i ? i - 1 : 0) + ' ' + chr + (chr && bin ? 'i' : '') + str; return false; }