java.lang.Object
ushiosan.jvm_utilities.lang.Numbers

public final class Numbers extends Object
  • Method Details

    • isDecimal

      public static boolean isDecimal(double number)
      Determine if a decimal number contains decimals after the floating point.
      Parameters:
      number - the number to evaluate
      Returns:
      true if the number contains decimals or false otherwise
    • parse

      Returns a new Number initialized to the value represented by the specified String.
      Parameters:
      content - the string to be parsed
      Returns:
      the Number value represented by the string argument
      Throws:
      NumberFormatException - if the string does not contain a parsable Number