Python Tutorial Python Advanced Python References Python Libraries

Python math - tau Constant



The Python math.tau constant is used to return the value of Τ = 6.283185…, to the available precision. Tau is a circle constant equal to 2𝜋, the ratio of a circle’s circumference to its radius.

Syntax

#New in version 3.6
math.tau

Parameters

No parameter is required.

Return Value

Returns the value of Τ to the available precision.

Example:

In the example below, math.tau constant is used to return the value of Τ to the available precision.

import math

print(math.tau)

The output of the above code will be:

6.283185307179586

❮ Python Math Module

5