Class NCPDPUtil

java.lang.Object
com.mirth.connect.server.userutil.NCPDPUtil

public class NCPDPUtil extends Object
Provides NCPDP utility methods.
  • Method Details

    • formatNCPDPNumber

      public static String formatNCPDPNumber(String origNumber, int decimalPoints)
      Converts a signed overpunch code into a string representing the appropriate decimal value.
      Parameters:
      origNumber - The signed overpunch code to convert.
      decimalPoints - The index at which to place a decimal point in the converted string. If this value is less than or equal to zero, or greater than or equal to the length of the overpunch code, a decimal point will not be inserted.
      Returns:
      The string representation of the converted decimal value.