Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
pi constant #4170
Original bug ID: 4170
The stdlib should (IMHO) define a pi constant in Pervasives.
Comment author: Richard Jones
Since you ask ...
Is acos(-1.) the most accurate pi considering either the IEEE representation or the longer internal representation used by x86?
I know that glibc defines this constant carefully so that the most accurate pi is used. (glibc also provides long-double -- 128 bit -- variants but I guess we can't use those in OCaml).