File tree 2 files changed +12
-0
lines changed
2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -75,6 +75,12 @@ pub mod consts {
75
75
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
76
76
pub const PI : f32 = 3.14159265358979323846264338327950288_f32 ;
77
77
78
+ /// The full circle constant (τ)
79
+ ///
80
+ /// Equal to 2π.
81
+ #[ unstable( feature = "tau_constant" , issue = "66770" ) ]
82
+ pub const TAU : f32 = 6.28318530717958647692528676655900577_f32 ;
83
+
78
84
/// π/2
79
85
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
80
86
pub const FRAC_PI_2 : f32 = 1.57079632679489661923132169163975144_f32 ;
Original file line number Diff line number Diff line change @@ -75,6 +75,12 @@ pub mod consts {
75
75
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
76
76
pub const PI : f64 = 3.14159265358979323846264338327950288_f64 ;
77
77
78
+ /// The full circle constant (τ)
79
+ ///
80
+ /// Equal to 2π.
81
+ #[ unstable( feature = "tau_constant" , issue = "66770" ) ]
82
+ pub const TAU : f64 = 6.28318530717958647692528676655900577_f64 ;
83
+
78
84
/// π/2
79
85
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
80
86
pub const FRAC_PI_2 : f64 = 1.57079632679489661923132169163975144_f64 ;
You can’t perform that action at this time.
0 commit comments