com.mirth.connect.server.userutil
Class NCPDPUtil

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

public class NCPDPUtil
extends java.lang.Object

Provides NCPDP utility methods.


Method Summary
static java.lang.String formatNCPDPNumber(java.lang.String origNumber, int decimalPoints)
          Converts a signed overpunch code into a string representing the appropriate decimal value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

formatNCPDPNumber

public static java.lang.String formatNCPDPNumber(java.lang.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.