Hacker News new | ask | show | jobs
by gandalf013 2093 days ago
bc calculator doesn't (or didn't) define pi, but has atan. I've used "4*atan(1) method" in bc to get pi.
1 comments

This works, `echo 'scale=100;4*a(1)' | bc -lq`