X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;ds=inline;f=src%2Fbe%2Fnikiroo%2Futils%2FStringUtils.java;h=b3c1071908ed359c23205fe27902024101665b85;hb=a67248cf983a1370625887c82ed7524e95b56dd1;hp=fa72a4e83e14ee56f51e702056e7a5972345f72d;hpb=35425f123ac142890223e0e62df8dcdc2acfe660;p=fanfix.git
diff --git a/src/be/nikiroo/utils/StringUtils.java b/src/be/nikiroo/utils/StringUtils.java
index fa72a4e..b3c1071 100644
--- a/src/be/nikiroo/utils/StringUtils.java
+++ b/src/be/nikiroo/utils/StringUtils.java
@@ -713,10 +713,10 @@ public class StringUtils {
*
* Examples:
*
- * - 8 765 becomes "8k"
- * - 998 765 becomes "998k"
- * - 12 987 364 becomes "12M"
- * - 5 534 333 221 becomes "5G"
+ * - 8 765 becomes "8 k"
+ * - 998 765 becomes "998 k"
+ * - 12 987 364 becomes "12 M"
+ * - 5 534 333 221 becomes "5 G"
*
*
* @param value
@@ -734,10 +734,10 @@ public class StringUtils {
*
* Examples (assuming decimalPositions = 1):
*
- * - 8 765 becomes "8.7k"
- * - 998 765 becomes "998.7k"
- * - 12 987 364 becomes "12.9M"
- * - 5 534 333 221 becomes "5.5G"
+ * - 8 765 becomes "8.7 k"
+ * - 998 765 becomes "998.7 k"
+ * - 12 987 364 becomes "12.9 M"
+ * - 5 534 333 221 becomes "5.5 G"
*
*
* @param value
@@ -749,7 +749,7 @@ public class StringUtils {
*/
public static String formatNumber(long value, int decimalPositions) {
long userValue = value;
- String suffix = "";
+ String suffix = " ";
long mult = 1;
if (value >= 1000000000l) {