morrySnow commented on code in PR #1992: URL: https://github.com/apache/doris-website/pull/1992#discussion_r1947415176
########## docs/sql-manual/sql-functions/scalar-functions/numeric-functions/floor.md: ########## @@ -22,66 +22,101 @@ specific language governing permissions and limitations under the License. --> -## floor +## Description -### description -#### Syntax +Round down floating-point and fixed-point decimals to a specific number of digits and return the rounded floating-point or fixed-point number. -`T floor(T x[, d])` +## Syntax -If not specified `d`: returns the largest integer value less than or equal to `x`, which is **the most common usage**. -Otherwise, returns the largest round number that is less than or equal to `x` and flowing the rules: +```sql +floor(<a>, <d>) Review Comment: 同ceil ########## docs/sql-manual/sql-functions/scalar-functions/numeric-functions/ceil.md: ########## @@ -22,66 +22,102 @@ specific language governing permissions and limitations under the License. --> -## ceil +## Description -### description -#### Syntax +Round up floating-point and fixed-point decimals to a specific number of places and return the rounded floating-point or fixed-point number. -`T ceil(T x[, d])` +## Syntax -If not specified `d`: returns the smallest integer value less than or equal to `x`, which is **the most common usage**. -Otherwise, returns the smallest round number that is less than or equal to `x` and flowing the rules: +```sql +CEIL(<a>, <d>) Review Comment: d应该是可选的? ```suggestion CEIL(<a>[, <d>]) ``` ########## docs/sql-manual/sql-functions/scalar-functions/numeric-functions/cos.md: ########## @@ -22,36 +22,60 @@ specific language governing permissions and limitations under the License. --> -## cos +## Description -### description -#### Syntax +Calculate the cosine of the parameter -`DOUBLE cos(DOUBLE x)` -Returns the cosine of `x`, where `x` is in radians +## Syntax -### example +```sql +cos(<a>) Review Comment: 语法中的函数名应该大写 ########## docs/sql-manual/sql-functions/scalar-functions/numeric-functions/ceil.md: ########## @@ -22,66 +22,102 @@ specific language governing permissions and limitations under the License. --> -## ceil +## Description -### description -#### Syntax +Round up floating-point and fixed-point decimals to a specific number of places and return the rounded floating-point or fixed-point number. -`T ceil(T x[, d])` +## Syntax -If not specified `d`: returns the smallest integer value less than or equal to `x`, which is **the most common usage**. -Otherwise, returns the smallest round number that is less than or equal to `x` and flowing the rules: +```sql +CEIL(<a>, <d>) Review Comment: d应该是可选的? ```suggestion CEIL(<a>[, <d>]) ``` -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
