mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 15:42:02 +00:00
CLICKHOUSEDOCS-496: fix.
This commit is contained in:
parent
0f2511678c
commit
e6d9dc79f6
@ -96,8 +96,8 @@ Using banker's rounding, you can reduce the effect of rounding numbers on the re
|
||||
|
||||
For example, sum numbers 1.5, 2.5, 3.5, 4.5 with different rounding:
|
||||
|
||||
- No rounding: 1.5 + 2.5 + 3.5 + 4.5 = 12
|
||||
- Banker's rounding: 2 + 2 + 4 + 4 = 12
|
||||
- No rounding: 1.5 + 2.5 + 3.5 + 4.5 = 12.
|
||||
- Banker's rounding: 2 + 2 + 4 + 4 = 12.
|
||||
- Rounding to the nearest integer: 2 + 3 + 4 + 5 = 14.
|
||||
|
||||
**Syntax**
|
||||
|
@ -93,8 +93,8 @@ round(3.65, 1) = 3.6
|
||||
|
||||
Пример суммирования чисел 1.5, 2.5, 3.5 и 4.5 с различным округлением:
|
||||
|
||||
- Без округления: 1.5 + 2.5 + 3.5 + 4.5 = 12
|
||||
- Банковское округление: 2 + 2 + 4 + 4 = 12
|
||||
- Без округления: 1.5 + 2.5 + 3.5 + 4.5 = 12.
|
||||
- Банковское округление: 2 + 2 + 4 + 4 = 12.
|
||||
- Округление до ближайшего целого: 2 + 3 + 4 + 5 = 14.
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user