Package cn.nukkit.utils
Class NumberConversions
java.lang.Object
cn.nukkit.utils.NumberConversions
Utils for casting number types to other number types
-
Method Details
-
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
-