NumberConversions

public final class NumberConversions

Utils for casting number types to other number types

Functions

Link copied to clipboard
public static int ceil(double num)
Link copied to clipboard
public static void checkFinite(double d, String message)
public static void checkFinite(float d, String message)
Link copied to clipboard
public static int floor(double num)
Link copied to clipboard
public static boolean isFinite(double d)
public static boolean isFinite(float f)
Link copied to clipboard
public static int round(double num)
Link copied to clipboard
public static double square(double num)
Link copied to clipboard
public static byte toByte(Object object)
Link copied to clipboard
public static double toDouble(Object object)
Link copied to clipboard
public static float toFloat(Object object)
Link copied to clipboard
public static int toInt(Object object)
Link copied to clipboard
public static long toLong(Object object)
Link copied to clipboard
public static short toShort(Object object)