|
ContactCenters V. 0.9.9. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectumontreal.iro.lecuyer.util.DefaultDoubleFormatterWithError
public class DefaultDoubleFormatterWithError
Default double formatter with error.
Uses
int, int, double, double, String[])
to format values with 3 significant digits.
Constructor Summary | |
---|---|
DefaultDoubleFormatterWithError()
Constructs a formatter formatting values with 3 significant digits. |
|
DefaultDoubleFormatterWithError(int numDigits)
Constructs a formatter formatting values with numDigits significant digits. |
Method Summary | |
---|---|
String |
format(double x)
This should be equivalent to format (x, 0) . |
String |
format(double x,
double error)
Formats the value x with error error into a string, and returns the formatted string. |
int |
getNumDigits()
Returns the number of significant digits for formatting. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultDoubleFormatterWithError()
public DefaultDoubleFormatterWithError(int numDigits)
numDigits
- the number of significant digits for formatting.Method Detail |
---|
public int getNumDigits()
public String format(double x, double error)
DoubleFormatterWithError
format
in interface DoubleFormatterWithError
x
- the value being formatted.error
- the error on the formatted value.
public String format(double x)
DoubleFormatterWithError
format (x, 0)
.
format
in interface DoubleFormatter
format
in interface DoubleFormatterWithError
x
- the value being formatted.
|
ContactCenters V. 0.9.9. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |