On Sun, Sep 30, 2018 at 11:31 AM Steve Barnes <gadgetst...@live.co.uk>
wrote:

> No complex can be converted to float without accessing either the real
> or imag component.
>

Sure. Not in Python 3.7.  But mathematically, it seems really
straightforward to say that Complex numbers that lie on the Real line (i.e.
imaginary part is zero) map in an obvious way to Real numbers.

I haven't done an inventory, but I'd guess most—but not all—other PLs do
the same thing Python does.

-- 
Keeping medicines from the bloodstreams of the sick; food
from the bellies of the hungry; books from the hands of the
uneducated; technology from the underdeveloped; and putting
advocates of freedom in prisons.  Intellectual property is
to the 21st century what the slave trade was to the 16th.
_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to