/
valemobil
/
python-future
Обзор
Документация
Войти
/
valemobil
/
python-future
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
docs/future-builtins.rst
17 строк
457 B
Jon Dufresne
Trim trailing white space throughout the project
10 сен 2018, 23:58
10 сен 2018, 23:58
99cd678
Код
Авторство
О чём код?
.. _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