SciFormatter¶
- class SciFormatter(precision=None, zerotrim=None)[source]¶
Bases:
FormatterFormat numbers with scientific notation.
- Parameters
precision (
int, default:{6, 2}) – The maximum number of digits after the decimal point. Default is6whenzerotrimisTrueand2otherwise.zerotrim (
bool, default:rc['format.zerotrim']) – Whether to trim trailing decimal zeros.
Methods Summary
__call__(x[, pos])Convert number to a string.