*This is your fundamental mistake. The *vast* majority of numbers are simply not expressible as integer ratios. Pi is just one of those.
There is no pair of integers (p, q) such that p/q = pi. None. -- What do you think happens to mail addressed to "spam.trap"?
