morrySnow commented on code in PR #1917: URL: https://github.com/apache/doris-website/pull/1917#discussion_r1946277477
########## docs/sql-manual/sql-functions/scalar-functions/numeric-functions/negative.md: ########## @@ -22,34 +22,75 @@ specific language governing permissions and limitations under the License. --> -## negative +## Description -### description -#### Syntax +Returns the negative value of the parameter x. + +## Syntax ```sql -BIGINT negative(BIGINT x) -DOUBLE negative(DOUBLE x) -DECIMAL negative(DECIMAL x) +NEGATIVE(<x>) ``` -Return `-x`. -### example +## Parameters + +| Parameter | Description | +|-----------|------------| +| `<Number>` | The independent variable supports the types `BIGINT, DOUBLE, and DECIMAL` | Review Comment: 语法中没有 number 应该是 x? -- 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