mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
add doc
This commit is contained in:
parent
671b826805
commit
68bba802ab
@ -89,6 +89,14 @@ divide(a, b)
|
||||
|
||||
Alias: `a / b` (operator)
|
||||
|
||||
## divideOrNull
|
||||
Like [divide](#divide) but returns NULL when the divisor is zero and return type is Nullable.
|
||||
**Syntax**
|
||||
|
||||
```sql
|
||||
divideOrNull(a, b)
|
||||
```
|
||||
|
||||
## intDiv
|
||||
|
||||
Performs an integer division of two values `a` by `b`, i.e. computes the quotient rounded down to the next smallest integer.
|
||||
@ -264,6 +272,15 @@ Result:
|
||||
└────────────────────────┘
|
||||
```
|
||||
|
||||
## moduloOrNull
|
||||
Like [modulo](#modulo) but returns NULL when the divisor is zero and return type is Nullable.
|
||||
|
||||
**Syntax**
|
||||
|
||||
```sql
|
||||
moduloOrNull(a, b)
|
||||
```
|
||||
|
||||
## negate
|
||||
|
||||
Negates a value `a`. The result is always signed.
|
||||
|
Loading…
Reference in New Issue
Block a user