pyphi.display.numbers.format_value#
- pyphi.display.numbers.format_value(value, sig_figs=6)[source]#
Format a value for display.
Real (non-integer) numbers are rounded to
sig_figssignificant figures and always keep a decimal point (so continuous quantities read consistently). Integers — counts, indices — render without one. Everything else is rendered withstr. The exact numeric value remains available on the source object’s attribute.