Home Data Platform Cloud Reference Redpanda SQL Reference Functions Math cotd Cloud Page options Copy as Markdown Copied! View as plain text Ask AI about this topic Add MCP server to VS Code cotd The cotd() function returns the cotangent of a specified angle, expressed in degrees. See also cot() for an angle expressed in radians. Syntax COTD(x) Arguments x: An angle, in degrees, of type real or double precision. Return type Same as the input type (real or double precision). Examples Basic usage SELECT COTD(45); cotd -------------------- 1.0000000000000002 (1 row) Different angle SELECT COTD(90); cotd ----------------------- 6.123233995736766e-17 (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! cot degrees