You might be in reference to "pi" which is defined as the number of diameter lengths you can fit around the circumference of a circle;
\(\pi=3.14159......\)
Pi is a transcendental number, which means that it does not have a final decimal point, and cannot be expressed by a finite fraction. There are hundreds of ways to calculate pi via formulas, but I don't think you're as interested in that.
A pie is a baked dish which is usually made of a pastry dough casing that covers or completely contains a filling of various sweet or savouryingredients.
Pies are defined by their crusts. A filled pie (also single-crust or bottom-crust), has pastry lining the baking dish, and the filling is placed on top of the pastry but left open. A top-crust pie has the filling in the bottom of the dish and is covered with a pastry or other covering before baking. A two-crust pie has the filling completely enclosed in the pastry shell. Shortcrust pastry is a typical kind of pastry used for pie crusts, but many things can be used, including baking powder biscuits, mashed potatoes, and crumbs.
Pies can be a variety of sizes, ranging from bite-size to ones designed for multiple servings.