Home Data Platform Cloud Reference Redpanda SQL Reference Functions Math tanh Cloud Page options Copy as Markdown Copied! View as plain text Ask AI about this topic Add MCP server to VS Code tanh The tanh() function returns the hyperbolic tangent of a specified numeric argument. Syntax TANH(x) Arguments x: A number of type real or double precision, including zero. Return type Same as the input type (real or double precision). Examples Positive value SELECT TANH(1); tanh -------------------- 0.7615941559557649 (1 row) Negative value TANH(-x) returns the negative of TANH(x): SELECT TANH(-1); tanh --------------------- -0.7615941559557649 (1 row) Zero SELECT TANH(0); tanh ------ 0 (1 row) Back to top × Simple online edits For simple changes, such as fixing a typo, you can edit the content directly on GitHub. Edit on GitHub Or, open an issue to let us know about something that you want us to change. Open an issue Contribution guide For extensive content updates, or if you prefer to work locally, read our contribution guide . Was this helpful? thumb_up thumb_down group Ask in the community mail Share your feedback group_add Make a contribution 🎉 Thanks for your feedback! sqrt to_char (number)