usse/funda-scraper/venv/lib/python3.10/site-packages/mypyc/doc/float_operations.rst

25 lines
433 B
ReStructuredText
Raw Normal View History

2023-02-20 22:38:24 +00:00
.. _float-ops:
Native float operations
========================
These ``float`` operations have fast, optimized implementations. Other
floating point operations use generic implementations that are often
slower.
.. note::
At the moment, only a few float operations are optimized. This will
improve in future mypyc releases.
Construction
------------
* Float literal
* ``float(string)``
Functions
---------
* ``abs(f)``