Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

Python math.tau Constant

Python math.tau Constant

Python math Module Python math Module

Python math.tau Returns the mathematical constant tau = 6.283185...; tau is a circle constant equal to 2 times pi, 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 the 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

)

Output result:


6.283185307179586

Python math Module Python math Module