程序包 org.bukkit.util
类 NumberConversions
java.lang.Object
org.bukkit.util.NumberConversions
数字类型转换工具类。
-
方法概要
修饰符和类型方法说明static int
ceil
(double num) static void
checkFinite
(double d, String message) static void
checkFinite
(float d, String message) static int
floor
(double num) static boolean
isFinite
(double d) static boolean
isFinite
(float f) static int
round
(double num) static double
square
(double num) static byte
static double
static float
static int
static long
static short
-
方法详细资料
-
floor
public static int floor(double num) -
ceil
public static int ceil(double num) -
round
public static int round(double num) -
square
public static double square(double num) -
toInt
-
toFloat
-
toDouble
-
toLong
-
toShort
-
toByte
-
isFinite
public static boolean isFinite(double d) -
isFinite
public static boolean isFinite(float f) -
checkFinite
-
checkFinite
-