RFR: JDK-8283124: Add constant for tau to Math and StrictMath
Kevin Bourrillion
kevinb at google.com
Tue Mar 15 01:23:59 UTC 2022
On Mon, Mar 14, 2022 at 4:16 PM Joe Darcy <darcy at openjdk.java.net> wrote:
Yes; after further thought, I agree having tau = 2.0*pi is preferable.
>
Kinda reads like it's taking a stand on which of the two is the *real*
fundamental mathematical constant and which one is a hack. Therefore it
should really be pi that's set to tau/2.0 :-)
Can PI have a @see link to this so that people know about it?
(I'll just mention that {from,to}Radians would also benefit from some
advertisement, as a great many PI usages are dividing it by or into 180,
but do what thou wilt with that FYI.)
--
Kevin Bourrillion | Java Librarian | Google, Inc. | kevinb at google.com
More information about the core-libs-dev
mailing list