KassieZ commented on code in PR #1811: URL: https://github.com/apache/doris-website/pull/1811#discussion_r1917904508
########## docs/sql-manual/sql-functions/scalar-functions/numeric-functions/sqrt.md: ########## @@ -22,40 +22,44 @@ specific language governing permissions and limitations under the License. --> -## sqrt +## Description -### description -#### Syntax +Returns the square root of a value, where the input value must be greater than or equal to 0. Special cases: -`DOUBLE sqrt(DOUBLE x)` -Returns the square root of `x`.`x` is required to be greater than or equal to `0`. +- If the parameter is less than 0, returns NULL. -:::tip -Another alias for this function is `dsqrt`. -::: +## Aliases -### example +DSQRT +## Syntax + +```sql +sqrt(DOUBLE <a>) ``` -mysql> select sqrt(9); -+-----------+ -| sqrt(9.0) | -+-----------+ -| 3 | -+-----------+ -mysql> select sqrt(2); -+--------------------+ -| sqrt(2.0) | -+--------------------+ -| 1.4142135623730951 | -+--------------------+ -mysql> select sqrt(100.0); -+-------------+ -| sqrt(100.0) | -+-------------+ -| 10 | -+-------------+ + +## Parameters + +| Parameter | Description | +| -- | -- | Review Comment: 表格格式建议用大模型刷新一下,目前看感觉长度不够。可能会有渲染问题 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org