Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
future / docs / future-builtins.rst
Size: Mime:
.. _future-builtins:

``future.builtins``
===================

The ``future.builtins`` module is also accessible as ``builtins`` on Py2.

- ``pow()`` supports fractional exponents of negative numbers like in Py3::

    >>> from builtins import pow
    >>> pow(-1, 0.5)
    (6.123233995736766e-17+1j)

- ``round()`` uses Banker's Rounding as in Py3 to the nearest even last digit::

    >>> from builtins import round
    >>> assert round(0.1250, 2) == 0.12