Easy Tutorial
❮ Python Func Number Max Python Uwsgi ❯

Python math.tau Constant

Python math Module

Python math.tau returns the mathematical constant τ = 6.283185..., where tau is a circle constant equal to 2π, the ratio of a circle's circumference to its radius.

The value of tau is 6.283185307179586.

Syntax

The syntax for 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 math package
import math

# Print tau
print(math.tau)

Output result:

6.283185307179586

Python math Module

❮ Python Func Number Max Python Uwsgi ❯