A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2001-July/016338.html below:

[Python-Dev] dpython interaction with imaginary types

[Python-Dev] dpython interaction with imaginary types [Python-Dev] dpython interaction with imaginary typesMichael McLay mclay@nist.gov
Fri, 27 Jul 2001 16:40:38 -0400
Paul F. Dubois  writes:
> In dpython, what is 2.0j? Is the "standard" way of writing complex numbers,
> 3.0 + 2.0j, valid?

If this expression is placed in a module with a  '.py' extension it will work 
exactly as it does today.  

An exception will be raised if the expression is in a '.dp' module because 
the 3.0 would be a decimal number and the complex type is expecting a binary 
number for the real portiion.



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4