iqm.benchmarks.compressive_gst.mgst.reporting.reporting.number_to_str

Contents

iqm.benchmarks.compressive_gst.mgst.reporting.reporting.number_to_str#

iqm.benchmarks.compressive_gst.mgst.reporting.reporting.number_to_str(number: float, uncertainty: tuple[float, float] | None = None, precision: int = 3) str#

Formats a floating point number to a string with the given precision.

Parameters:
  • number (float) – The floating point number to format.

  • uncertainty (tuple[float, float] | None) – The upper and lower values of the confidence interval

  • precision (int) – The number of decimal places to include in the formatted string.

Returns:

The formatted floating point number as a string.

Return type:

str