Overview | Package | Class | Tree | Deprecated | Index | Help
| ContactCenters V. 0.9.9.
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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.

Overview | Package | Class | Tree | Deprecated | Index | Help
| ContactCenters V. 0.9.9.
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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