From: akr@... Date: 2021-01-12T05:19:49+00:00 Subject: [ruby-core:102016] [Ruby master Feature#17496] Add constant Math::TAU Issue #17496 has been updated by akr (Akira Tanaka). I feel a constant of Math::PI * 2 is useful especially for `x * 360 / (Math::PI * 2)`. We need not only `*` but also parenthesis. `x * 360 / Math::TAU` is shorter than above. However I like another name, Math::PI2. ---------------------------------------- Feature #17496: Add constant Math::TAU https://bugs.ruby-lang.org/issues/17496#change-89864 * Author: jzakiya (Jabari Zakiya) * Status: Open * Priority: Normal ---------------------------------------- Excuse me if this has been brought up before. This is a simple proposal to add the math constant ``Math::TAU`` = 2*``Math::PI``. See: https://tauday.com/ ``TAU`` has been included in a growing number of languages (Rust, Python3, Julia, et al), and this would add Ruby to that list, and make it even cooler. :-) -- https://bugs.ruby-lang.org/ Unsubscribe: