C# Tutorial C# Advanced C# Resources
Python Java C++ C C# PHP R SQL DS Algo InterviewQ

C# - Math Tau Field



The C# Math Tau field 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

public const double Tau = 6.2831853071795862;

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.

using System;

class MyProgram {
  static void Main(string[] args) {
   double tau = Math.Tau;
   Console.WriteLine("Math.Tau = " + tau);
  }
}

The output of the above code will be:

Math.Tau = 6.2831853071795862

❮ C# Math Methods

5