Home Data Platform Cloud Reference Redpanda SQL Reference Functions Math pi Cloud Page options Copy as Markdown Copied! View as plain text Ask AI about this topic Add MCP server to VS Code pi The pi() function returns the mathematical constant pi (π). Syntax PI() The pi() function takes no arguments. Return type double precision Examples Basic usage SELECT PI(); pi ------------------- 3.141592653589793 (1 row) Use pi() in an expression This example uses pi() to convert an angle in radians to degrees: SELECT DEGREES(PI()); degrees --------- 180 (1 row) Back to top Was this helpful? thumb_up thumb_down group Ask in the community mail Share your feedback 🎉 Thanks for your feedback! log10 power