Python math.tau Constant
Python math.tauReturns the mathematical constant τ = 6.283185..., tau is a circle constant equal to 2π, the ratio of a circle's circumference to its radius.
The tau value is 6.283185307179586.
Syntax
The syntax of the math.tau constant is as follows:
math.tau
Return Value
Returns a floating-point number 6.283185307179586, representing the ratio of a circle's circumference to its radius.
Example
The following example returns tau:
Example
# Import the math package
import math
# Output tau
print (math.tau)
import math
# Output tau
print (math.tau)
Output result:
6.283185307179586Other Extensions
Python math Module