I think you’re overthinking it. The first thing you’re told when you learn algebra is that a letter represents a number and you can say “let a equal (number), b equal (number)…” so you can let pi equal whatever you want for the purposes of one simple problem.