ContactCenters
V. 0.9.9.

umontreal.iro.lecuyer.util
Interface DoubleFormatterWithError

All Superinterfaces:
DoubleFormatter
All Known Implementing Classes:
DefaultDoubleFormatterWithError, LaTeXDoubleFormatterWithError

public interface DoubleFormatterWithError
extends DoubleFormatter

Represents an object that can format a double-precision value into a string, while formatting can possibly be affected by the error on the formatted value.


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.
 

Method Detail

format

String format(double x,
              double error)
Formats the value x with error error into a string, and returns the formatted string. The error can be, e.g., the radius of a confidence interval, or a standard deviation. The given error must be used only to affect how x is formatted; it must be formatted into the returned string.

Parameters:
x - the value being formatted.
error - the error on the formatted value.
Returns:
the formatted value.

format

String format(double x)
This should be equivalent to format (x, 0).

Specified by:
format in interface DoubleFormatter
Parameters:
x - the value being formatted.
Returns:
the formatted value.

ContactCenters
V. 0.9.9.

To submit a bug or ask questions, send an e-mail to Richard Simard.