ClickHouse/tests/queries/0_stateless/00161_rounding_functions.reference
2022-02-13 18:58:24 +08:00

687 lines
11 KiB
Plaintext

0 0 0 0 0 0
1 1 1 1 1 1
2 2 2 2 2 2
3 3 3 3 3 3
4 4 4 4 4 4
5 5 5 5 5 5
6 6 6 6 6 6
7 7 7 7 7 7
8 8 8 8 8 8
9 9 9 9 9 9
10 10 10 10 10 10
11 11 11 11 11 11
12 12 12 12 12 12
13 13 13 13 13 13
14 14 14 14 14 14
15 15 15 15 15 15
16 16 16 16 16 16
17 17 17 17 17 17
18 18 18 18 18 18
19 19 19 19 19 19
0 0 0 0 0 0
1 1 1 1 1 1
2 2 2 2 2 2
3 3 3 3 3 3
4 4 4 4 4 4
5 5 5 5 5 5
6 6 6 6 6 6
7 7 7 7 7 7
8 8 8 8 8 8
9 9 9 9 9 9
10 10 10 10 10 10
11 11 11 11 11 11
12 12 12 12 12 12
13 13 13 13 13 13
14 14 14 14 14 14
15 15 15 15 15 15
16 16 16 16 16 16
17 17 17 17 17 17
18 18 18 18 18 18
19 19 19 19 19 19
0 0 0 0 0 0
1 1 1 1 1 1
2 2 2 2 2 2
3 3 3 3 3 3
4 4 4 4 4 4
5 5 5 5 5 5
6 6 6 6 6 6
7 7 7 7 7 7
8 8 8 8 8 8
9 9 9 9 9 9
10 10 10 10 10 10
11 11 11 11 11 11
12 12 12 12 12 12
13 13 13 13 13 13
14 14 14 14 14 14
15 15 15 15 15 15
16 16 16 16 16 16
17 17 17 17 17 17
18 18 18 18 18 18
19 19 19 19 19 19
0 0 0 0 0 0
1 1 1 1 1 1
2 2 2 2 2 2
3 3 3 3 3 3
4 4 4 4 4 4
5 5 5 5 5 5
6 6 6 6 6 6
7 7 7 7 7 7
8 8 8 8 8 8
9 9 9 9 9 9
10 10 10 10 10 10
11 11 11 11 11 11
12 12 12 12 12 12
13 13 13 13 13 13
14 14 14 14 14 14
15 15 15 15 15 15
16 16 16 16 16 16
17 17 17 17 17 17
18 18 18 18 18 18
19 19 19 19 19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7 -0.7 -0.7 -0.7 -0.7 -0.7
-0.6 -0.6 -0.6 -0.6 -0.6 -0.6
-0.5 -0.5 -0.5 -0.5 -0.5 -0.5
-0.4 -0.4 -0.4 -0.4 -0.4 -0.4
-0.3 -0.3 -0.3 -0.3 -0.3 -0.3
-0.2 -0.2 -0.2 -0.2 -0.2 -0.2
-0.1 -0.1 -0.1 -0.1 -0.1 -0.1
0 0 0 0 0 0
0.1 0.1 0.1 0.1 0.1 0.1
0.2 0.2 0.2 0.2 0.2 0.2
0.3 0.3 0.3 0.3 0.3 0.3
0.4 0.4 0.4 0.4 0.4 0.4
0.5 0.5 0.5 0.5 0.5 0.5
0.6 0.6 0.6 0.6 0.6 0.6
0.7 0.7 0.7 0.7 0.7 0.7
0.8 0.8 0.8 0.8 0.8 0.8
0.9 0.9 0.9 0.9 0.9 0.9
0 0 0 0 0 0
1 0 0 0 10 0
2 0 0 0 10 0
3 0 0 0 10 0
4 0 0 0 10 0
5 10 0 0 10 0
6 10 10 0 10 0
7 10 10 0 10 0
8 10 10 0 10 0
9 10 10 0 10 0
10 10 10 10 10 10
11 10 10 10 20 10
12 10 10 10 20 10
13 10 10 10 20 10
14 10 10 10 20 10
15 20 20 10 20 10
16 20 20 10 20 10
17 20 20 10 20 10
18 20 20 10 20 10
19 20 20 10 20 10
0 0 0 0 0 0
1 0 0 0 10 0
2 0 0 0 10 0
3 0 0 0 10 0
4 0 0 0 10 0
5 10 0 0 10 0
6 10 10 0 10 0
7 10 10 0 10 0
8 10 10 0 10 0
9 10 10 0 10 0
10 10 10 10 10 10
11 10 10 10 20 10
12 10 10 10 20 10
13 10 10 10 20 10
14 10 10 10 20 10
15 20 20 10 20 10
16 20 20 10 20 10
17 20 20 10 20 10
18 20 20 10 20 10
19 20 20 10 20 10
0 0 0 0 0 0
1 0 0 0 10 0
2 0 0 0 10 0
3 0 0 0 10 0
4 0 0 0 10 0
5 10 0 0 10 0
6 10 10 0 10 0
7 10 10 0 10 0
8 10 10 0 10 0
9 10 10 0 10 0
10 10 10 10 10 10
11 10 10 10 20 10
12 10 10 10 20 10
13 10 10 10 20 10
14 10 10 10 20 10
15 20 20 10 20 10
16 20 20 10 20 10
17 20 20 10 20 10
18 20 20 10 20 10
19 20 20 10 20 10
0 0 0 0 0 0
1 0 0 0 10 0
2 0 0 0 10 0
3 0 0 0 10 0
4 0 0 0 10 0
5 10 0 0 10 0
6 10 10 0 10 0
7 10 10 0 10 0
8 10 10 0 10 0
9 10 10 0 10 0
10 10 10 10 10 10
11 10 10 10 20 10
12 10 10 10 20 10
13 10 10 10 20 10
14 10 10 10 20 10
15 20 20 10 20 10
16 20 20 10 20 10
17 20 20 10 20 10
18 20 20 10 20 10
19 20 20 10 20 10
-10 -10 -10 -10 -10 -10
-9 -10 -10 -10 0 0
-8 -10 -10 -10 0 0
-7 -10 -10 -10 0 0
-6 -10 -10 -10 0 0
-5 -10 0 -10 0 0
-4 0 0 -10 0 0
-3 0 0 -10 0 0
-2 0 0 -10 0 0
-1 0 0 -10 0 0
0 0 0 0 0 0
1 0 0 0 10 0
2 0 0 0 10 0
3 0 0 0 10 0
4 0 0 0 10 0
5 10 0 0 10 0
6 10 10 0 10 0
7 10 10 0 10 0
8 10 10 0 10 0
9 10 10 0 10 0
-10 -10 -10 -10 -10 -10
-9 -10 -10 -10 0 0
-8 -10 -10 -10 0 0
-7 -10 -10 -10 0 0
-6 -10 -10 -10 0 0
-5 -10 0 -10 0 0
-4 0 0 -10 0 0
-3 0 0 -10 0 0
-2 0 0 -10 0 0
-1 0 0 -10 0 0
0 0 0 0 0 0
1 0 0 0 10 0
2 0 0 0 10 0
3 0 0 0 10 0
4 0 0 0 10 0
5 10 0 0 10 0
6 10 10 0 10 0
7 10 10 0 10 0
8 10 10 0 10 0
9 10 10 0 10 0
-10 -10 -10 -10 -10 -10
-9 -10 -10 -10 0 0
-8 -10 -10 -10 0 0
-7 -10 -10 -10 0 0
-6 -10 -10 -10 0 0
-5 -10 0 -10 0 0
-4 0 0 -10 0 0
-3 0 0 -10 0 0
-2 0 0 -10 0 0
-1 0 0 -10 0 0
0 0 0 0 0 0
1 0 0 0 10 0
2 0 0 0 10 0
3 0 0 0 10 0
4 0 0 0 10 0
5 10 0 0 10 0
6 10 10 0 10 0
7 10 10 0 10 0
8 10 10 0 10 0
9 10 10 0 10 0
-10 -10 -10 -10 -10 -10
-9 -10 -10 -10 0 0
-8 -10 -10 -10 0 0
-7 -10 -10 -10 0 0
-6 -10 -10 -10 0 0
-5 -10 0 -10 0 0
-4 0 0 -10 0 0
-3 0 0 -10 0 0
-2 0 0 -10 0 0
-1 0 0 -10 0 0
0 0 0 0 0 0
1 0 0 0 10 0
2 0 0 0 10 0
3 0 0 0 10 0
4 0 0 0 10 0
5 10 0 0 10 0
6 10 10 0 10 0
7 10 10 0 10 0
8 10 10 0 10 0
9 10 10 0 10 0
-10 -10 -10 -10 -10 -10
-9 -10 -10 -10 -0 -0
-8 -10 -10 -10 -0 -0
-7 -10 -10 -10 -0 -0
-6 -10 -10 -10 -0 -0
-5 -0 -0 -10 -0 -0
-4 -0 -0 -10 -0 -0
-3 -0 -0 -10 -0 -0
-2 -0 -0 -10 -0 -0
-1 -0 -0 -10 -0 -0
0 0 0 0 0 0
1 0 0 0 10 0
2 0 0 0 10 0
3 0 0 0 10 0
4 0 0 0 10 0
5 0 0 0 10 0
6 10 10 0 10 0
7 10 10 0 10 0
8 10 10 0 10 0
9 10 10 0 10 0
-10 -10 -10 -10 -10 -10
-9 -10 -10 -10 -0 -0
-8 -10 -10 -10 -0 -0
-7 -10 -10 -10 -0 -0
-6 -10 -10 -10 -0 -0
-5 -0 -0 -10 -0 -0
-4 -0 -0 -10 -0 -0
-3 -0 -0 -10 -0 -0
-2 -0 -0 -10 -0 -0
-1 -0 -0 -10 -0 -0
0 0 0 0 0 0
1 0 0 0 10 0
2 0 0 0 10 0
3 0 0 0 10 0
4 0 0 0 10 0
5 0 0 0 10 0
6 10 10 0 10 0
7 10 10 0 10 0
8 10 10 0 10 0
9 10 10 0 10 0
0 0 0 0 0 0
1 0 0 0 100 0
2 0 0 0 100 0
3 0 0 0 100 0
4 0 0 0 100 0
5 0 0 0 100 0
6 0 0 0 100 0
7 0 0 0 100 0
8 0 0 0 100 0
9 0 0 0 100 0
10 0 0 0 100 0
11 0 0 0 100 0
12 0 0 0 100 0
13 0 0 0 100 0
14 0 0 0 100 0
15 0 0 0 100 0
16 0 0 0 100 0
17 0 0 0 100 0
18 0 0 0 100 0
19 0 0 0 100 0
0 0 0 0 0 0
1 0 0 0 100 0
2 0 0 0 100 0
3 0 0 0 100 0
4 0 0 0 100 0
5 0 0 0 100 0
6 0 0 0 100 0
7 0 0 0 100 0
8 0 0 0 100 0
9 0 0 0 100 0
10 0 0 0 100 0
11 0 0 0 100 0
12 0 0 0 100 0
13 0 0 0 100 0
14 0 0 0 100 0
15 0 0 0 100 0
16 0 0 0 100 0
17 0 0 0 100 0
18 0 0 0 100 0
19 0 0 0 100 0
0 0 0 0 0 0
1 0 0 0 100 0
2 0 0 0 100 0
3 0 0 0 100 0
4 0 0 0 100 0
5 0 0 0 100 0
6 0 0 0 100 0
7 0 0 0 100 0
8 0 0 0 100 0
9 0 0 0 100 0
10 0 0 0 100 0
11 0 0 0 100 0
12 0 0 0 100 0
13 0 0 0 100 0
14 0 0 0 100 0
15 0 0 0 100 0
16 0 0 0 100 0
17 0 0 0 100 0
18 0 0 0 100 0
19 0 0 0 100 0
0 0 0 0 0 0
1 0 0 0 100 0
2 0 0 0 100 0
3 0 0 0 100 0
4 0 0 0 100 0
5 0 0 0 100 0
6 0 0 0 100 0
7 0 0 0 100 0
8 0 0 0 100 0
9 0 0 0 100 0
10 0 0 0 100 0
11 0 0 0 100 0
12 0 0 0 100 0
13 0 0 0 100 0
14 0 0 0 100 0
15 0 0 0 100 0
16 0 0 0 100 0
17 0 0 0 100 0
18 0 0 0 100 0
19 0 0 0 100 0
-10 0 0 -100 0 0
-9 0 0 -100 0 0
-8 0 0 -100 0 0
-7 0 0 -100 0 0
-6 0 0 -100 0 0
-5 0 0 -100 0 0
-4 0 0 -100 0 0
-3 0 0 -100 0 0
-2 0 0 -100 0 0
-1 0 0 -100 0 0
0 0 0 0 0 0
1 0 0 0 100 0
2 0 0 0 100 0
3 0 0 0 100 0
4 0 0 0 100 0
5 0 0 0 100 0
6 0 0 0 100 0
7 0 0 0 100 0
8 0 0 0 100 0
9 0 0 0 100 0
-10 0 0 -100 0 0
-9 0 0 -100 0 0
-8 0 0 -100 0 0
-7 0 0 -100 0 0
-6 0 0 -100 0 0
-5 0 0 -100 0 0
-4 0 0 -100 0 0
-3 0 0 -100 0 0
-2 0 0 -100 0 0
-1 0 0 -100 0 0
0 0 0 0 0 0
1 0 0 0 100 0
2 0 0 0 100 0
3 0 0 0 100 0
4 0 0 0 100 0
5 0 0 0 100 0
6 0 0 0 100 0
7 0 0 0 100 0
8 0 0 0 100 0
9 0 0 0 100 0
-10 0 0 -100 0 0
-9 0 0 -100 0 0
-8 0 0 -100 0 0
-7 0 0 -100 0 0
-6 0 0 -100 0 0
-5 0 0 -100 0 0
-4 0 0 -100 0 0
-3 0 0 -100 0 0
-2 0 0 -100 0 0
-1 0 0 -100 0 0
0 0 0 0 0 0
1 0 0 0 100 0
2 0 0 0 100 0
3 0 0 0 100 0
4 0 0 0 100 0
5 0 0 0 100 0
6 0 0 0 100 0
7 0 0 0 100 0
8 0 0 0 100 0
9 0 0 0 100 0
-10 0 0 -100 0 0
-9 0 0 -100 0 0
-8 0 0 -100 0 0
-7 0 0 -100 0 0
-6 0 0 -100 0 0
-5 0 0 -100 0 0
-4 0 0 -100 0 0
-3 0 0 -100 0 0
-2 0 0 -100 0 0
-1 0 0 -100 0 0
0 0 0 0 0 0
1 0 0 0 100 0
2 0 0 0 100 0
3 0 0 0 100 0
4 0 0 0 100 0
5 0 0 0 100 0
6 0 0 0 100 0
7 0 0 0 100 0
8 0 0 0 100 0
9 0 0 0 100 0
-10 -0 -0 -100 -0 -0
-9 -0 -0 -100 -0 -0
-8 -0 -0 -100 -0 -0
-7 -0 -0 -100 -0 -0
-6 -0 -0 -100 -0 -0
-5 -0 -0 -100 -0 -0
-4 -0 -0 -100 -0 -0
-3 -0 -0 -100 -0 -0
-2 -0 -0 -100 -0 -0
-1 -0 -0 -100 -0 -0
0 0 0 0 0 0
1 0 0 0 100 0
2 0 0 0 100 0
3 0 0 0 100 0
4 0 0 0 100 0
5 0 0 0 100 0
6 0 0 0 100 0
7 0 0 0 100 0
8 0 0 0 100 0
9 0 0 0 100 0
-10 -0 -0 -100 -0 -0
-9 -0 -0 -100 -0 -0
-8 -0 -0 -100 -0 -0
-7 -0 -0 -100 -0 -0
-6 -0 -0 -100 -0 -0
-5 -0 -0 -100 -0 -0
-4 -0 -0 -100 -0 -0
-3 -0 -0 -100 -0 -0
-2 -0 -0 -100 -0 -0
-1 -0 -0 -100 -0 -0
0 0 0 0 0 0
1 0 0 0 100 0
2 0 0 0 100 0
3 0 0 0 100 0
4 0 0 0 100 0
5 0 0 0 100 0
6 0 0 0 100 0
7 0 0 0 100 0
8 0 0 0 100 0
9 0 0 0 100 0
123456789 123456780 123456700 123456000 123450000 123400000 123000000 120000000 100000000 0 0
12345.6789 12340 12300 12000 10000 0 12345.6 12345.67 12345.678 12345.6789 12345.6789
64 64 2 0 0
0.5 0 -0.5 -0.5 -0.125
2 20 200 5 50 500 5 50 500
2 20 200 5 50 500 5 50 500