Pi?
RH
Member Posts: 1,079
I may be missing something very obvious but I can't find a way to input pi. As in the 3.141...
I was wondering if you can use a pi as I wanted to calculate the area of a circle using pi*r^2
Thanks for any help
I was wondering if you can use a pi as I wanted to calculate the area of a circle using pi*r^2
Thanks for any help
Comments
:P
QS
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io
assigning a constant Game.PI (float) = 3.14159... is precise, requires no cpu computation and is human readable in code.
Also you could just use 3.2, or 4, or 3.23... if you live in Indiana.
http://www.straightdope.com/columns/read/805/did-a-state-legislature-once-pass-a-law-saying-pi-equals-3