Class SMDecimalFormat

java.lang.Object
com.softwaremining.platformutils.SMDecimalFormat

public class SMDecimalFormat extends Object
this class represents a simplefied version of java.text.DecimalFormat; It does not provide any support for negative formats (System does not use it), It only supports '#', '0' and '.' in the pattern - e.g. "###0.00" or "####.00' It also expects all decimals to use '0' as the pattern ie '0.00', and not '#0.##'
  • Constructor Details

    • SMDecimalFormat

      public SMDecimalFormat(String original, String pattern)
      Deprecated.
      Parameters:
      original -
      pattern -
    • SMDecimalFormat

      public SMDecimalFormat(String pattern)
  • Method Details

    • format

      public String format(double value)