diff --git a/source/Ox/js/Format.js b/source/Ox/js/Format.js index 2d574ecf..a598c28f 100644 --- a/source/Ox/js/Format.js +++ b/source/Ox/js/Format.js @@ -11,7 +11,7 @@ Ox.formatArea = function(num, dec) { return Ox.formatNumber( (km ? num / 1000000 : num).toPrecision(8) ) + ' ' + (km ? 'k' : '') + 'm\u00B2'; -} +}; /*@ Ox.formatColor (strange one) @@ -572,7 +572,7 @@ Ox.formatString = function (str, obj) { return str.replace(/\{([^}]+)\}/g, function(str, match) { return obj[match]; }); -} +}; /*@ Ox.formatValue Formats a numerical value @@ -602,5 +602,5 @@ Ox.formatValue = function(num, str, bin) { Ox.formatUnit Formats a number with a unit @*/ Ox.formatUnit = function(num, str) { - return num + ' ' + str; -} \ No newline at end of file + return Ox.formatNumber(num, 3) + ' ' + str; +}; \ No newline at end of file