1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-13 18:14:38 +02:00

Reverting to old way of displaying currency.

git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1425 e251c2fe-e539-e718-e476-b85c1f46cddb
This commit is contained in:
snowleo
2011-05-11 23:12:52 +00:00
parent 6e5a56fb50
commit cffb493415

View File

@@ -270,11 +270,11 @@ public class Util
} }
return isBlockAboveAir(world, x, y, z); return isBlockAboveAir(world, x, y, z);
} }
//private static DecimalFormat df = new DecimalFormat("#.00"); private static DecimalFormat df = new DecimalFormat("#.00");
public static String formatCurrency(double value) public static String formatCurrency(double value)
{ {
return Util.format("currency", value); return "$"+df.format(value);
} }
public static double roundDouble(double d) public static double roundDouble(double d)