跳至內容

模板:Precision/testcases

維基百科,自由的百科全書

Tests

Number {Precision}
template
(live)
/sandbox
template
(test)
1111.123456789 9 9
1111.12345678 8 8
1111.1234567 7 7
1111.123456 6 6
1111.12345 5 5
-5.123456789 9 9
-5.12345678 8 8
-5.1234567 7 7
-5.123456 6 6
-5.12345 5 5
-51 0 0
-510 -1 -1
-5100 -2 -2
-51000 -3 -3
-51000.3 1 1
1111111111.12345678 8 8
1111111111.1234567 7 7
1111111111.123456 6 6
1111111111.12345 5 5
1111111111.1234 4 4
1111111111.123 3 3
1111111111.12 2 2
1111111111.1 1 1
1111111111.10 2 2
1111111111.100 3 3
1111111111.1000 4 4
1111111111.10000 5 5
1111111111 0 0
1111111110 -1 -1
1111111100 -2 -2
1111111000 -3 -3
1111110000 -4 -4
1111100000 -5 -5
1111000000 -6 -6
1110000000 -7 -7
1100000000 -8 -8
4.70000 5 5
47.0000 4 4
470.0000 4 4
4700.0000 4 4
4.7000 4 4
47.000 3 3
470.000 3 3
4700.000 3 3
4.700 3 3
47.00 2 2
470.00 2 2
4700.00 2 2
4.70 2 2
47.0 1 1
470.0 1 1
4700.0 1 1
4.7 1 1
47 0 0
470 -1 -1
4700 -2 -2
100000000000000.0 1 1
10000000000000.00 2 2
1000000000000.000 3 3
100000000000.0000 4 4
10000000000.00000 5 5
1000000000.000000 6 6
100000000.0000000 7 7
10000000.00000000 8 8
1000000.000000000 9 9
100000.0000000000 10 10
10000.00000000000 11 11
1000.000000000000 12 12
100.0000000000000 13 13
10.00000000000000 14 14
1.000000000000000 15 15
0.1000000000000000 16 16
0.01000000000000000 17 17
0.001000000000000000 18 18
0.0001000000000000000 19 19
1000000000000000.0 1 1
100000000000000.00 2 2
10000000000000.000 3 3
1000000000000.0000 4 4
100000000000.00000 5 5
10000000000.000000 6 6
1000000000.0000000 7 7
100000000.00000000 8 8
10000000.000000000 9 9
1000000.0000000000 10 10
100000.00000000000 11 11
10000.000000000000 12 12
1000.0000000000000 13 13
100.00000000000000 14 14
10.000000000000000 15 15
1.0000000000000000 16 16
0.10000000000000000 17 17
0.010000000000000000 18 18
0.0010000000000000000 19 19
0.00010000000000000000 20 20
0.000010000000000000000 21 21
1.000000000000000 15 15
1.0000000000000000 16 16
1.00000000000000000 17 17
1.000000000000000000 18 18
1.0000000000000000000 19 19
1.00000000000000000000 20 20
100000000000000000.0 1 1
10000000000000000.00 2 2
1000000000000000.000 3 3
100000000000000.0000 4 4
1.234567890 9 9
1.2345678900 10 10
1.23456789000 11 11
1.234567890000 12 12
1.2345678900000 13 13
1.23456789000000 14 14
1.234567890000000 15 15
1.2345678900000000 16 16
0.123456789012345 15 15
0.1234567890123456 16 16
0.12345678901234567 17 17
0.123456789012345678 18 18
0.1234567890123456789 19 19
0.12345678901234567890 20 20
0.123456789012345678901 21 21
0.012345678901234567 18 18
0.0012345678901234567 19 19
0.00012345678901234567 20 20
0.000012345678901234567 21 21
0.0000012345678901234567 22 22
12345678901234567 0 0
1234567890123456.7 1 1
123456789012345.67 2 2
12345678901234.567 3 3
1234567890123.4567 4 4
123456789012.34567 5 5
12345678901.234567 6 6
1234567890.1234567 7 7
123456789.01234567 8 8
12345678.901234567 9 9
1234567.8901234567 10 10
123456.78901234567 11 11
12345.678901234567 12 12
1234.5678901234567 13 13
123.45678901234567 14 14
12.345678901234567 15 15
1.2345678901234567 16 16
12345678901234.567890 6 6
1234567890123.4567890 7 7
123456789012.34567890 8 8
Extreme test cases
Number {Precision}
template
(live)
/sandbox
template
(test)
0.0000001000000000000000 22 22
0.00000001000000000000000 23 23
0.000000001000000000000000 24 24
0.0000000001000000000000000 25 25
0.00000000001000000000000000 26 26
0.000000000001000000000000000 27 27
0.0000000000001000000000000000 28 28
0.00000000000001000000000000000 29 29
0.10000000000000000 17 17
0.010000000000000000 18 18
0.0010000000000000000 19 19
0.00010000000000000000 20 20
0.000010000000000000000 21 21
0.0000010000000000000000 22 22
0.00000010000000000000000 23 23
0.000000010000000000000000 24 24
0.0000000010000000000000000 25 25
0.00000000010000000000000000 26 26
0.000000000010000000000000000 27 27
0.0000000000010000000000000000 28 28
0.00000000000010000000000000000 29 29
0.000000000000010000000000000000 30 30
0.012345678901234567 18 18
0.0012345678901234567 19 19
0.00012345678901234567 20 20
0.000012345678901234567 21 21
0.0000012345678901234567 22 22
0.00000012345678901234567 23 23
0.000000012345678901234567 24 24
0.0000000012345678901234567 25 25
0.00000000012345678901234567 26 26
0.000000000012345678901234567 27 27
0.0000000000012345678901234567 28 28
0.00000000000012345678901234567 29 29
0.000000000000012345678901234567 30 30
0.0000000000000012345678901234567 31 31
0.00000000000000012345678901234567 32 32
0.000000000000000012345678901234567 33 33