public class FormatUtil
extends java.lang.Object
| Constructor and Description |
|---|
FormatUtil() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
FormatDouble(double dblValue,
int iNumLeft,
int iNumRight,
double dblMultiplier)
Format the double input by multiplying, and then adding left and right adjustments
|
static java.lang.String |
FormatDouble(double dblValue,
int iNumLeft,
int iNumRight,
double dblMultiplier,
boolean bLeadingSpaceForPositive)
Format the double input by multiplying, and then adding left and right adjustments
|
static java.lang.String |
PrePad(int i)
Pre-pad a single digit integer with zeros
|
public static final java.lang.String PrePad(int i)
i - Integer representing the inputpublic static final java.lang.String FormatDouble(double dblValue,
int iNumLeft,
int iNumRight,
double dblMultiplier,
boolean bLeadingSpaceForPositive)
dblValue - Double representing the inputiNumLeft - Integer representing the number of left justifying zerosiNumRight - Integer representing the number of right justifying zerosdblMultiplier - Double representing the multiplierbLeadingSpaceForPositive - TRUE - A Leading Space will be emitted for Adjusted Positive Numbers.
For Adjusted Negatives this will be the '-' sign.public static final java.lang.String FormatDouble(double dblValue,
int iNumLeft,
int iNumRight,
double dblMultiplier)
dblValue - Double representing the inputiNumLeft - Integer representing the number of left justifying zerosiNumRight - Integer representing the number of right justifying zerosdblMultiplier - Double representing the multiplier