Pi() The Pi() function returns the ratio of the circumference of a circle to its diameter. Syntax Pi() Example Pi() * 2 Returns the number PI times 2.