PandacraftUtils/src/net/mc_pandacraft/java/util/StringUtil.java

12 lines
237 B
Java
Raw Normal View History

2014-12-26 00:12:28 +01:00
package net.mc_pandacraft.java.util;
public class StringUtil {
public static String formatDouble(double d)
{
if(d == (long) d)
return String.format("%d",(long)d);
else
return String.valueOf((float)d);
}
}