Package com.github.ushiosan23.jvm.base
Class Numbers
- java.lang.Object
-
- com.github.ushiosan23.jvm.base.Numbers
-
public final class Numbers extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanhasDecimals(double number)Determine if a decimal number contains decimals after the floating point.static booleanhasDecimals(float number)Determine if a decimal number contains decimals after the floating point.
-
-
-
Method Detail
-
hasDecimals
public static boolean hasDecimals(double number)
Determine if a decimal number contains decimals after the floating point.- Parameters:
number- Number to evaluate- Returns:
- Returns
trueif the number contains decimals orfalseotherwise
-
hasDecimals
public static boolean hasDecimals(float number)
Determine if a decimal number contains decimals after the floating point.- Parameters:
number- Number to evaluate- Returns:
- Returns
trueif the number contains decimals orfalseotherwise
-
-