public class TARDISNumberParsers
extends java.lang.Object
Constructor and Description |
---|
TARDISNumberParsers() |
Modifier and Type | Method and Description |
---|---|
static double |
parseDouble(java.lang.String i)
Parses a string for a double.
|
static float |
parseFloat(java.lang.String i)
Parses a string for a float.
|
static int |
parseInt(java.lang.String i)
Parses a string for an integer.
|
static long |
parseLong(java.lang.String i)
Parses a string for a double.
|
static int |
roundUp(int num,
int divisor)
Returns a rounded integer after division.
|
public static int parseInt(java.lang.String i)
i
- the string to convert to an int.public static float parseFloat(java.lang.String i)
i
- the string to convert to an float.public static double parseDouble(java.lang.String i)
i
- the string to convert to an double.public static long parseLong(java.lang.String i)
i
- the string to convert to an double.public static int roundUp(int num, int divisor)
num
- the number being divided.divisor
- the number to divide by.