📄 printf.test
字号:
do_test printf-2.2.8.1 { sqlite3_mprintf_double {abc: (%*.*f) :xyz} 5 5 -1.0} {abc: (-1.00000) :xyz}do_test printf-2.2.8.2 { sqlite3_mprintf_double {abc: (%*.*e) :xyz} 5 5 -1.0} {abc: (-1.00000e+00) :xyz}do_test printf-2.2.8.3 { sqlite3_mprintf_double {abc: (%*.*g) :xyz} 5 5 -1.0} {abc: ( -1) :xyz}do_test printf-2.2.8.4 { sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 5 5 -1.0} {abc: 5 5 (-1) :xyz}do_test printf-2.2.8.5 { sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 5 5 -1.0} {abc: 5 5 (-1.00000) :xyz}do_test printf-2.2.8.6 { sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 5 5 -1.0} {abc: 5 5 (-000000001) :xyz}do_test printf-2.2.8.7 { sqlite3_mprintf_double {abc: %d %d (%5.5f) :xyz} 5 5 -1.0} {abc: 5 5 (-1.00000) :xyz}do_test printf-2.2.8.8 { sqlite3_mprintf_double {abc: %d %d (%5.5e) :xyz} 5 5 -1.0} {abc: 5 5 (-1.00000e+00) :xyz}do_test printf-2.2.8.9 { sqlite3_mprintf_double {abc: %d %d (%5.5g) :xyz} 5 5 -1.0} {abc: 5 5 ( -1) :xyz}do_test printf-2.2.9.1 { sqlite3_mprintf_double {abc: (%*.*f) :xyz} 5 5 -99.99999} {abc: (-99.99999) :xyz}do_test printf-2.2.9.2 { sqlite3_mprintf_double {abc: (%*.*e) :xyz} 5 5 -99.99999} {abc: (-1.00000e+02) :xyz}do_test printf-2.2.9.3 { sqlite3_mprintf_double {abc: (%*.*g) :xyz} 5 5 -99.99999} {abc: ( -100) :xyz}do_test printf-2.2.9.4 { sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 5 5 -99.99999} {abc: 5 5 (-100) :xyz}do_test printf-2.2.9.5 { sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 5 5 -99.99999} {abc: 5 5 (-100.000) :xyz}do_test printf-2.2.9.6 { sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 5 5 -99.99999} {abc: 5 5 (-000000100) :xyz}do_test printf-2.2.9.7 { sqlite3_mprintf_double {abc: %d %d (%5.5f) :xyz} 5 5 -99.99999} {abc: 5 5 (-99.99999) :xyz}do_test printf-2.2.9.8 { sqlite3_mprintf_double {abc: %d %d (%5.5e) :xyz} 5 5 -99.99999} {abc: 5 5 (-1.00000e+02) :xyz}do_test printf-2.2.9.9 { sqlite3_mprintf_double {abc: %d %d (%5.5g) :xyz} 5 5 -99.99999} {abc: 5 5 ( -100) :xyz}do_test printf-2.2.10.1 { sqlite3_mprintf_double {abc: (%*.*f) :xyz} 5 5 3.14e+9} {abc: (3140000000.00000) :xyz}do_test printf-2.2.10.2 { sqlite3_mprintf_double {abc: (%*.*e) :xyz} 5 5 3.14e+9} {abc: (3.14000e+09) :xyz}do_test printf-2.2.10.3 { sqlite3_mprintf_double {abc: (%*.*g) :xyz} 5 5 3.14e+9} {abc: (3.14e+09) :xyz}do_test printf-2.2.10.4 { sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 5 5 3.14e+9} {abc: 5 5 (3.14e+09) :xyz}do_test printf-2.2.10.5 { sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 5 5 3.14e+9} {abc: 5 5 (3.14000e+09) :xyz}do_test printf-2.2.10.6 { sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 5 5 3.14e+9} {abc: 5 5 (003.14e+09) :xyz}do_test printf-2.2.10.7 { sqlite3_mprintf_double {abc: %d %d (%5.5f) :xyz} 5 5 3.14e+9} {abc: 5 5 (3140000000.00000) :xyz}do_test printf-2.2.10.8 { sqlite3_mprintf_double {abc: %d %d (%5.5e) :xyz} 5 5 3.14e+9} {abc: 5 5 (3.14000e+09) :xyz}do_test printf-2.2.10.9 { sqlite3_mprintf_double {abc: %d %d (%5.5g) :xyz} 5 5 3.14e+9} {abc: 5 5 (3.14e+09) :xyz}do_test printf-2.2.11.2 { sqlite3_mprintf_double {abc: (%*.*e) :xyz} 5 5 -4.72732e+88} {abc: (-4.72732e+88) :xyz}do_test printf-2.2.11.3 { sqlite3_mprintf_double {abc: (%*.*g) :xyz} 5 5 -4.72732e+88} {abc: (-4.7273e+88) :xyz}do_test printf-2.2.11.4 { sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 5 5 -4.72732e+88} {abc: 5 5 (-4.72732e+88) :xyz}do_test printf-2.2.11.5 { sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 5 5 -4.72732e+88} {abc: 5 5 (-4.72732e+88) :xyz}do_test printf-2.2.11.6 { sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 5 5 -4.72732e+88} {abc: 5 5 (-4.72732e+88) :xyz}do_test printf-2.2.11.8 { sqlite3_mprintf_double {abc: %d %d (%5.5e) :xyz} 5 5 -4.72732e+88} {abc: 5 5 (-4.72732e+88) :xyz}do_test printf-2.2.11.9 { sqlite3_mprintf_double {abc: %d %d (%5.5g) :xyz} 5 5 -4.72732e+88} {abc: 5 5 (-4.7273e+88) :xyz}do_test printf-2.2.12.2 { sqlite3_mprintf_double {abc: (%*.*e) :xyz} 5 5 9.87991e+143} {abc: (9.87991e+143) :xyz}do_test printf-2.2.12.3 { sqlite3_mprintf_double {abc: (%*.*g) :xyz} 5 5 9.87991e+143} {abc: (9.8799e+143) :xyz}do_test printf-2.2.12.4 { sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 5 5 9.87991e+143} {abc: 5 5 (9.87991e+143) :xyz}do_test printf-2.2.12.5 { sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 5 5 9.87991e+143} {abc: 5 5 (9.87991e+143) :xyz}do_test printf-2.2.12.6 { sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 5 5 9.87991e+143} {abc: 5 5 (9.87991e+143) :xyz}do_test printf-2.2.12.8 { sqlite3_mprintf_double {abc: %d %d (%5.5e) :xyz} 5 5 9.87991e+143} {abc: 5 5 (9.87991e+143) :xyz}do_test printf-2.2.12.9 { sqlite3_mprintf_double {abc: %d %d (%5.5g) :xyz} 5 5 9.87991e+143} {abc: 5 5 (9.8799e+143) :xyz}do_test printf-2.2.13.1 { sqlite3_mprintf_double {abc: (%*.*f) :xyz} 5 5 -6.287291e-9} {abc: (-0.00000) :xyz}do_test printf-2.2.13.2 { sqlite3_mprintf_double {abc: (%*.*e) :xyz} 5 5 -6.287291e-9} {abc: (-6.28729e-09) :xyz}do_test printf-2.2.13.3 { sqlite3_mprintf_double {abc: (%*.*g) :xyz} 5 5 -6.287291e-9} {abc: (-6.2873e-09) :xyz}do_test printf-2.2.13.4 { sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 5 5 -6.287291e-9} {abc: 5 5 (-6.28729e-09) :xyz}do_test printf-2.2.13.5 { sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 5 5 -6.287291e-9} {abc: 5 5 (-6.28729e-09) :xyz}do_test printf-2.2.13.6 { sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 5 5 -6.287291e-9} {abc: 5 5 (-6.28729e-09) :xyz}do_test printf-2.2.13.7 { sqlite3_mprintf_double {abc: %d %d (%5.5f) :xyz} 5 5 -6.287291e-9} {abc: 5 5 (-0.00000) :xyz}do_test printf-2.2.13.8 { sqlite3_mprintf_double {abc: %d %d (%5.5e) :xyz} 5 5 -6.287291e-9} {abc: 5 5 (-6.28729e-09) :xyz}do_test printf-2.2.13.9 { sqlite3_mprintf_double {abc: %d %d (%5.5g) :xyz} 5 5 -6.287291e-9} {abc: 5 5 (-6.2873e-09) :xyz}do_test printf-2.2.14.1 { sqlite3_mprintf_double {abc: (%*.*f) :xyz} 5 5 3.38826392e-110} {abc: (0.00000) :xyz}do_test printf-2.2.14.2 { sqlite3_mprintf_double {abc: (%*.*e) :xyz} 5 5 3.38826392e-110} {abc: (3.38826e-110) :xyz}do_test printf-2.2.14.3 { sqlite3_mprintf_double {abc: (%*.*g) :xyz} 5 5 3.38826392e-110} {abc: (3.3883e-110) :xyz}do_test printf-2.2.14.4 { sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 5 5 3.38826392e-110} {abc: 5 5 (3.38826e-110) :xyz}do_test printf-2.2.14.5 { sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 5 5 3.38826392e-110} {abc: 5 5 (3.38826e-110) :xyz}do_test printf-2.2.14.6 { sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 5 5 3.38826392e-110} {abc: 5 5 (3.38826e-110) :xyz}do_test printf-2.2.14.7 { sqlite3_mprintf_double {abc: %d %d (%5.5f) :xyz} 5 5 3.38826392e-110} {abc: 5 5 (0.00000) :xyz}do_test printf-2.2.14.8 { sqlite3_mprintf_double {abc: %d %d (%5.5e) :xyz} 5 5 3.38826392e-110} {abc: 5 5 (3.38826e-110) :xyz}do_test printf-2.2.14.9 { sqlite3_mprintf_double {abc: %d %d (%5.5g) :xyz} 5 5 3.38826392e-110} {abc: 5 5 (3.3883e-110) :xyz}do_test printf-2.3.1.1 { sqlite3_mprintf_double {abc: (%*.*f) :xyz} 10 10 0.001} {abc: (0.0010000000) :xyz}do_test printf-2.3.1.2 { sqlite3_mprintf_double {abc: (%*.*e) :xyz} 10 10 0.001} {abc: (1.0000000000e-03) :xyz}do_test printf-2.3.1.3 { sqlite3_mprintf_double {abc: (%*.*g) :xyz} 10 10 0.001} {abc: ( 0.001) :xyz}do_test printf-2.3.1.4 { sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 10 10 0.001} {abc: 10 10 (0.001) :xyz}do_test printf-2.3.1.5 { sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 10 10 0.001} {abc: 10 10 (0.00100000) :xyz}do_test printf-2.3.1.6 { sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 10 10 0.001} {abc: 10 10 (000000.001) :xyz}do_test printf-2.3.1.7 { sqlite3_mprintf_double {abc: %d %d (%10.10f) :xyz} 10 10 0.001} {abc: 10 10 (0.0010000000) :xyz}do_test printf-2.3.1.8 { sqlite3_mprintf_double {abc: %d %d (%10.10e) :xyz} 10 10 0.001} {abc: 10 10 (1.0000000000e-03) :xyz}do_test printf-2.3.1.9 { sqlite3_mprintf_double {abc: %d %d (%10.10g) :xyz} 10 10 0.001} {abc: 10 10 ( 0.001) :xyz}do_test printf-2.3.2.1 { sqlite3_mprintf_double {abc: (%*.*f) :xyz} 10 10 1.0e-20} {abc: (0.0000000000) :xyz}do_test printf-2.3.2.2 { sqlite3_mprintf_double {abc: (%*.*e) :xyz} 10 10 1.0e-20} {abc: (1.0000000000e-20) :xyz}do_test printf-2.3.2.3 { sqlite3_mprintf_double {abc: (%*.*g) :xyz} 10 10 1.0e-20} {abc: ( 1e-20) :xyz}do_test printf-2.3.2.4 { sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 10 10 1.0e-20} {abc: 10 10 (1e-20) :xyz}do_test printf-2.3.2.5 { sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 10 10 1.0e-20} {abc: 10 10 (1.00000e-20) :xyz}do_test printf-2.3.2.6 { sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 10 10 1.0e-20} {abc: 10 10 (000001e-20) :xyz}do_test printf-2.3.2.7 { sqlite3_mprintf_double {abc: %d %d (%10.10f) :xyz} 10 10 1.0e-20} {abc: 10 10 (0.0000000000) :xyz}do_test printf-2.3.2.8 { sqlite3_mprintf_double {abc: %d %d (%10.10e) :xyz} 10 10 1.0e-20} {abc: 10 10 (1.0000000000e-20) :xyz}do_test printf-2.3.2.9 { sqlite3_mprintf_double {abc: %d %d (%10.10g) :xyz} 10 10 1.0e-20} {abc: 10 10 ( 1e-20) :xyz}do_test printf-2.3.3.1 { sqlite3_mprintf_double {abc: (%*.*f) :xyz} 10 10 1.0} {abc: (1.0000000000) :xyz}do_test printf-2.3.3.2 { sqlite3_mprintf_double {abc: (%*.*e) :xyz} 10 10 1.0} {abc: (1.0000000000e+00) :xyz}do_test printf-2.3.3.3 { sqlite3_mprintf_double {abc: (%*.*g) :xyz} 10 10 1.0} {abc: ( 1) :xyz}do_test printf-2.3.3.4 { sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 10 10 1.0} {abc: 10 10 (1) :xyz}do_test printf-2.3.3.5 { sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 10 10 1.0} {abc: 10 10 (1.00000) :xyz}do_test printf-2.3.3.6 { sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 10 10 1.0} {abc: 10 10 (0000000001) :xyz}do_test printf-2.3.3.7 { sqlite3_mprintf_double {abc: %d %d (%10.10f) :xyz} 10 10 1.0} {abc: 10 10 (1.0000000000) :xyz}do_test printf-2.3.3.8 { sqlite3_mprintf_double {abc: %d %d (%10.10e) :xyz} 10 10 1.0} {abc: 10 10 (1.0000000000e+00) :xyz}do_test printf-2.3.3.9 { sqlite3_mprintf_double {abc: %d %d (%10.10g) :xyz} 10 10 1.0} {abc: 10 10 ( 1) :xyz}do_test printf-2.3.4.1 { sqlite3_mprintf_double {abc: (%*.*f) :xyz} 10 10 0.0} {abc: (0.0000000000) :xyz}do_test printf-2.3.4.2 { sqlite3_mprintf_double {abc: (%*.*e) :xyz} 10 10 0.0} {abc: (0.0000000000e+00) :xyz}do_test printf-2.3.4.3 { sqlite3_mprintf_double {abc: (%*.*g) :xyz} 10 10 0.0} {abc: ( 0) :xyz}do_test printf-2.3.4.4 { sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 10 10 0.0} {abc: 10 10 (0) :xyz}do_test printf-2.3.4.5 { sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 10 10 0.0} {abc: 10 10 (0.00000) :xyz}do_test printf-2.3.4.6 { sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 10 10 0.0} {abc: 10 10 (0000000000) :xyz}do_test printf-2.3.4.7 { sqlite3_mprintf_double {abc: %d %d (%10.10f) :xyz} 10 10 0.0} {abc: 10 10 (0.0000000000) :xyz}do_test printf-2.3.4.8 { sqlite3_mprintf_double {abc: %d %d (%10.10e) :xyz} 10 10 0.0} {abc: 10 10 (0.0000000000e+00) :xyz}do_test printf-2.3.4.9 { sqlite3_mprintf_double {abc: %d %d (%10.10g) :xyz} 10 10 0.0} {abc: 10 10 ( 0) :xyz}do_test printf-2.3.5.1 { sqlite3_mprintf_double {abc: (%*.*f) :xyz} 10 10 100.0} {abc: (100.0000000000) :xyz}do_test printf-2.3.5.2 { sqlite3_mprintf_double {abc: (%*.*e) :xyz} 10 10 100.0} {abc: (1.0000000000e+02) :xyz}do_test printf-2.3.5.3 { sqlite3_mprintf_double {abc: (%*.*g) :xyz} 10 10 100.0} {abc: ( 100) :xyz}do_test printf-2.3.5.4 { sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 10 10 100.0} {abc: 10 10 (100) :xyz}do_test printf-2.3.5.5 { sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 10 10 100.0} {abc: 10 10 (100.000) :xyz}do_test printf-2.3.5.6 { sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 10 10 100.0} {abc: 10 10 (0000000100) :xyz}do_test printf-2.3.5.7 { sqlite3_mprintf_double {abc: %d %d (%10.10f) :xyz} 10 10 100.0} {abc: 10 10 (100.0000000000) :xyz}do_test printf-2.3.5.8 { sqlite3_mprintf_double {abc: %d %d (%10.10e) :xyz} 10 10 100.0} {abc: 10 10 (1.0000000000e+02) :xyz}do_test printf-2.3.5.9 { sqlite3_mprintf_double {abc: %d %d (%10.10g) :xyz} 10 10 100.0} {abc: 10 10 ( 100) :xyz}do_test printf-2.3.6.1 { sqlite3_mprintf_double {abc: (%*.*f) :xyz} 10 10 9.99999} {abc: (9.9999900000) :xyz}do_test printf-2.3.6.2 { sqlite3_mprintf_double {abc: (%*.*e) :xyz} 10 10 9.99999} {abc: (9.9999900000e+00) :xyz}do_test printf-2.3.6.3 { sqlite3_mprintf_double {abc: (%*.*g) :xyz} 10 10 9.99999} {abc: ( 9.99999) :xyz}do_test printf-2.3.6.4 { sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 10 10 9.99999} {abc: 10 10 (9.99999) :xyz}do_test printf-2.3.6.5 { sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 10 10 9.99999} {abc: 10 10 (9.99999) :xyz}do_test printf-2.3.6.6 { sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 10 10 9.99999} {abc: 10 10 (0009.99999) :xyz}do_test printf-2.3.6.7 { sqlite3_mprintf_double {abc: %d %d (%10.10f) :xyz} 10 10 9.99999} {abc: 10 10 (9.9999900000) :xyz}do_test printf-2.3.6.8 { sqlite3_mprintf_double {abc: %d %d (%10.10e) :xyz} 10 10 9.99999} {abc: 10 10 (9.9999900000e+00) :xyz}do_test printf-2.3.6.9 { sqlite3_mprintf_double {abc: %d %d (%10.10g) :xyz} 10 10 9.99999} {abc: 10 10 ( 9.99999) :xyz}do_test printf-2.3.7.1 { sqlite3_mprintf_double {abc: (%*.*f) :xyz} 10 10 -0.00543} {abc: (-0.0054300000) :xyz}do_test printf-2.3.7.2 {
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -