Skip to main content
Mojo is now open source! Click to learn more.
Mojo
InstallDocsPackagesReleasesCommunity
Nightly 1.1.0 1.0.0

Standard library

Overviewbuiltincollectionsmemoryalgorithmmathospathlibsyspythontestingtimerandomhashlibbenchmarkcomplexcompileutilsgpu
⌂/Docs/Standard library/complex

Version: 1.1.0

complex

complex — Complex numbers.

Using it

Import the module, or use the name directly when it is part of builtin.

def main():
    print("complex")

Stability

Treat new names as experimental until the stability notes say otherwise. A minor compiler bump can rename an experimental API.

Where to look next

Neighboring modules are listed on the standard library index.

PreviousbenchmarkNextcompile
Edit this page
Using itStabilityWhere to look next
Mojo
Releases Roadmap License Contributing
Install now

Privacy settings

This local copy does not set tracking cookies. Essential storage remembers the theme and whether the announcement bar is dismissed.