FracFormatter
- class FracFormatter(symbol='', number=1)[source]
Bases:
FormatterFormat numbers as integers or integer fractions. Optionally express the values relative to some constant like
numpy.pi.- Parameters:
Note
The fractions shown by this formatter are resolved using the builtin
fractions.Fractionclass andfractions.Fraction.limit_denominator.Methods Summary
__call__(x[, pos])Convert number to a string.
Methods Documentation