mirror of
https://github.com/ziglang/zig.git
synced 2024-11-16 17:15:37 +00:00
add std.math.tau
constant (equivalent to 2 * pi)
This commit is contained in:
parent
aa4e92f3b3
commit
b3539b40a6
@ -10,6 +10,9 @@ pub const e = 2.71828182845904523536028747135266249775724709369995;
|
||||
/// Archimedes' constant (π)
|
||||
pub const pi = 3.14159265358979323846264338327950288419716939937510;
|
||||
|
||||
/// Circle constant (τ)
|
||||
pub const tau = 2 * pi;
|
||||
|
||||
/// log2(e)
|
||||
pub const log2e = 1.442695040888963407359924681001892137;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user