|
Boost Users : |
Subject: [Boost-users] [Math] Best Way to Produce Pi
From: Hossein Haeri (powerprogman_at_[hidden])
Date: 2010-10-08 07:19:01
Dear all,
What's my best way to define a constant for Pi. I'm thinking of using the following <cmath> stuff:
const double pi(4 * atan(1));
Does Boost provide a better solution?
TIA,
--Hossein
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net