Home >>Python cmath Module >Python cmath.pi Constant

Python cmath.pi Constant

Python cmath.pi Constant

Python cmath.pi constant is used to return the value of pi (3.141592653589793). It is defined as the ratio of the circumference to the diameter of a circle.

Syntax:
cmath.pi
Here is an example of Python cmath.pi constant:

import cmath
print (cmath.pi)

Output:
3.141592653589793

No Sidebar ads