I’m curious about infinite numbers in computing, in particular pi.
For a computer to render a circle it would have to understand pi. But how can it if it is infinite?
Am I looking too much into this? Would it just use a rounded value?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Mathematically, computers are both finite and non-continuous and therefore can neither know PI completely, nor correctly render a circle.
However, in the digital realm neither of these exist anyway, so it is sufficient to approximate PI and then use that to approximately render the circle, resulting in exactly the same pixels that would have been calculated from an exact PI anyway.
Either way, the resulting pixels aren’t really a circle either, because they are a finite collection of digital points and a circle is a curve made up of an infinite number of points, most with irrational values.
(It has been pointed out to me that PI is not normally used to plot a circle, which is true, however, the methods used to plot a circle are related to the formulas used to express and/or calculate the value of PI, which still have the same issues).