The earliest written records about π came from Babylonians around 2000 BC, who thought π=3. 125, while the ancient Egyptians used π=3. 1605. There is a record in China's ancient books that "the diameter of a circle is one and three", that is, π=3, which is also the π value recorded in the Old Testament. We can find π≈3. 1622 in the classic of Jainism in ancient India. These early π values are generally estimated by measuring the circumference of a circle, then measuring the diameter of the circle and dividing it. Because at that time, the circumference of a circle could not be accurately measured, and of course it was impossible to get an accurate π value through estimation.
Coincidentally, Liu Hui, a mathematician in China during the Three Kingdoms period, also gave a similar algorithm in 264 AD when commenting on Nine Chapters Arithmetic, and called it the method of cutting circles. The difference is that Liu Hui calculates pi by gradually approaching the area of a circle with the area of a regular polygon inscribed in the circle. About 480 AD, Zu Chongzhi, a great scientist in the Southern and Northern Dynasties, calculated 3. 14 15926.