Class DecimalUtils

java.lang.Object
com.echothree.util.common.string.DecimalUtils

public class DecimalUtils extends Object
  • Method Details

    • getInstance

      public static DecimalUtils getInstance()
    • parse

      public String parse(String minusSign, String fractionSeparator, Integer fractionDigits, String value)
      Parameters:
      minusSign - Character to use when looking for a minus sign in the value, may be null if amount is positive-only
      fractionSeparator - Character that separates the whole part of the value from the decimal portion
      fractionDigits - Number of characters to look for in the decimal portion of the value
      value - Value being parsed