Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
gandalf013
· 6y ago · 0 comments
bc calculator doesn't (or didn't) define pi, but has atan. I've used "4*atan(1) method" in bc to get pi.
Comments
[–]
ape4
6y ago
This works, `echo 'scale=100;4*a(1)' | bc -lq`