SigFigFormatter¶
-
SigFigFormatter
(sigfig=3, zerotrim=None)[source]¶ Return a
FuncFormatter
that rounds numbers to the specified number of significant digits.- Parameters
sigfig (float, optional) – The number of significant digits.
zerotrim (bool, optional) – Whether to trim trailing zeros.