code: def float_str(value, after=False, max_denominator=1000000):
    
    return float_str.frac(value, symbol_str=float_str.pi_symbol,
                          symbol_value=float_str.pi_value, after=after,
                          max_denominator=max_denominator)
docs: String formatter for fractions of :math:`\pi`.
  
    Alike the rational_formatter, but fixed to the symbol string
    ``float_str.pi_symbol`` and value ``float_str.pi_value`` (both can be
    changed, if needed), mainly intended for direct use with MatPlotLib labels.
  
    Examples
    --------
    >>> float_str.pi_symbol = "pi" # Just for printing sake
    >>> float_str.pi(pi / 2)
    'pi/2'
    >>> float_str.pi(pi * .333333333333333)
    'pi/3'
    >>> float_str.pi(pi * .222222222222222)
    '2pi/9'
    >>> float_str.pi_symbol = " PI" # With the space
    >>> float_str.pi(pi / 2, after=True)
    '1/2 PI'
    >>> float_str.pi(pi * .333333333333333, after=True)
    '1/3 PI'
    >>> float_str.pi(pi * .222222222222222, after=True)
    '2/9 PI'
  
    See Also
    --------
    float_str.frac :
      Float to string conversion, perhaps with a symbol as a multiplier.