Package reflectometry :: Package reduction :: Module formatnum

Module formatnum

source code

Format numbers nicely for printing.
Functions
 
format_uncertainty(value, uncertainty)
Given a value and an uncertainty, return a concise string representation.
source code
Function Details

format_uncertainty(value, uncertainty)

source code 

Given a value and an uncertainty, return a concise string representation.

The returned string uses only the number of digits warranted by the uncertainty in the measurement.