2008-07-15: Selected articles now have experimental "comment" links in the left column and at the bottom. You're welcome to use them for commenting and voting on articles. For a bit more on this, see this page. /F

complex

complex([real[, imag]])

Creates a complex number with the value real + imag*j or convert a string or number to a complex number. If the first parameter is a string, it will be interpreted as a complex number and the function must be called without a second parameter. The second parameter can never be a string. Each argument may be any numeric type (including complex). If the second parameter is omitted, it defaults to zero and the function serves as a numeric conversion function like int, long andfloat. If both parameters are omitted, returns 0j.

 

A Django site. this page was rendered by a django application in 0.02s 2008-07-25 10:16:13.342265. hosted by webfaction.