#---- No format Hello World! #---- %% % % % #---- %c %C x W *, x W * #---- %s %S 'Hello World!' '', 'Hello World!' '' #---- %d Integer '8' '1234567890' '0' '-17' Bit '8' '1234567890' '0' UInt '8' '1234567890' '0' Int '8' '1234567890' '0' '-17' #---- %D '8' '1234567890' '0' '-17' #---- %i '8' '1234567890' '0' '-17' #---- %I '8' '1234567890' '0' '-17' #---- %+d '+8' '+1234567890' '+0' '-17' #---- %-8d Integer '8 ' '1234567890' '0 ' '-17 ' Bit '8 ' '1234567890' '0 ' UInt '8 ' '1234567890' '0 ' Int '8 ' '1234567890' '0 ' '-17 ' #---- %4d Integer ' 8' '1234567890' ' 0' ' -17' Bit ' 8' '1234567890' ' 0' UInt ' 8' '1234567890' ' 0' Int ' 8' '1234567890' ' 0' ' -17' #---- %.4d Integer '0008' '1234567890' '0000' '-0017' Bit '0008' '1234567890' '0000' UInt '0008' '1234567890' '0000' Int '0008' '1234567890' '0000' '-0017' #---- %04d Integer '0008' '1234567890' '0000' '-017' Bit '0008' '1234567890' '0000' UInt '0008' '1234567890' '0000' Int '0008' '1234567890' '0000' '-017' #---- %*d Integer ' 8' '1234567890' ' 0' ' -17' Bit ' 8' '1234567890' ' 0' UInt ' 8' '1234567890' ' 0' Int ' 8' '1234567890' ' 0' ' -17' #---- %o Integer '10' '11145401322' '0' Bit '10' '11145401322' '0' UInt '10' '11145401322' '0' Int '10' '11145401322' '0' '37777777757' #---- %O '10' '11145401322' '0' #---- %-8o Integer '10 ' '11145401322' '0 ' Bit '10 ' '11145401322' '0 ' UInt '10 ' '11145401322' '0 ' Int '10 ' '11145401322' '0 ' '37777777757' #---- %4o Integer ' 10' '11145401322' ' 0' Bit ' 10' '11145401322' ' 0' UInt ' 10' '11145401322' ' 0' Int ' 10' '11145401322' ' 0' '37777777757' #---- %.4o Integer '0010' '11145401322' '0000' Bit '0010' '11145401322' '0000' UInt '0010' '11145401322' '0000' Int '0010' '11145401322' '0000' '37777777757' #---- %04o Integer '0010' '11145401322' '0000' Bit '0010' '11145401322' '0000' UInt '0010' '11145401322' '0000' Int '0010' '11145401322' '0000' '37777777757' #---- %*o Integer ' 10' '11145401322' ' 0' Bit ' 10' '11145401322' ' 0' UInt ' 10' '11145401322' ' 0' Int ' 10' '11145401322' ' 0' '37777777757' #---- %x Integer '8' '499602d2' '0' Bit '8' '499602d2' '0' UInt '8' '499602d2' '0' Int '8' '499602d2' '0' 'ffffffef' #---- %X '8' '499602D2' '0' #---- %h '8' '499602d2' '0' #---- %H '8' '499602D2' '0' #---- %-8x Integer '8 ' '499602d2' '0 ' Bit '8 ' '499602d2' '0 ' UInt '8 ' '499602d2' '0 ' Int '8 ' '499602d2' '0 ' 'ffffffef' #---- %4x Integer ' 8' '499602d2' ' 0' Bit ' 8' '499602d2' ' 0' UInt ' 8' '499602d2' ' 0' Int ' 8' '499602d2' ' 0' 'ffffffef' #---- %.4x Integer '0008' '499602d2' '0000' Bit '0008' '499602d2' '0000' UInt '0008' '499602d2' '0000' Int '0008' '499602d2' '0000' 'ffffffef' #---- %04x Integer '0008' '499602d2' '0000' Bit '0008' '499602d2' '0000' UInt '0008' '499602d2' '0000' Int '0008' '499602d2' '0000' 'ffffffef' #---- %*x Integer ' 8' '499602d2' ' 0' Bit ' 8' '499602d2' ' 0' UInt ' 8' '499602d2' ' 0' Int ' 8' '499602d2' ' 0' 'ffffffef' #---- %f %F '0.0000000000000000' '-1.7000000000000000' '3.3333333333333335' '-12499999999999999000000.0000000000000000' '0.0000000000000001' '0.0' '-1.7' '3.3333333333333335' '-12499999999999999000000.0' '0.00000000000000012345' #---- %e %E '0.0e0' '-1.7e0' '3.3333333333333335e0' '-1.2499999999999999e22' '1.2345e-16' '0.0E0' '-1.7E0' '3.3333333333333335E0' '-1.2499999999999999E22' '1.2345E-16' #---- %g %G '0.0' '-1.7' '3.3333333333333335' '-1.2499999999999999e22' '1.2345e-16' '0.0' '-1.7' '3.3333333333333335' '-1.2499999999999999E22' '1.2345E-16' #---- %.6f %.6F '0.000000' '-1.700000' '3.333333' '-12499999999999999000000.000000' '0.000000' '0.000000' '-1.700000' '3.333333' '-12499999999999999000000.000000' '0.000000' #---- %.6e %.6E '0.000000e0' '-1.700000e0' '3.333333e0' '-1.250000e22' '1.234500e-16' '0.000000E0' '-1.700000E0' '3.333333E0' '-1.250000E22' '1.234500E-16' #---- %*.*f %*.*F ' 0.000' ' -1.700' ' 3.333' '-12499999999999999000000.000' ' 0.000' ' 0.000' ' -1.700' ' 3.333' '-12499999999999999000000.000' ' 0.000' #---- %*.*e %*.*E ' 0.000e0' ' -1.700e0' ' 3.333e0' ' -1.250e22' ' 1.234e-16' ' 0.000E0' ' -1.700E0' ' 3.333E0' ' -1.250E22' ' 1.234E-16' #---- %b Integer '1000' '1001001100101100000001011010010' '0' Bit '1000' '1001001100101100000001011010010' '0' UInt '1000' '1001001100101100000001011010010' '0' Int '1000' '1001001100101100000001011010010' '0' '11111111111111111111111111101111' #---- %B '1000' '1001001100101100000001011010010' '0' #---- %-8b Integer '1000 ' '1001001100101100000001011010010' '0 ' Bit '1000 ' '1001001100101100000001011010010' '0 ' UInt '1000 ' '1001001100101100000001011010010' '0 ' Int '1000 ' '1001001100101100000001011010010' '0 ' '11111111111111111111111111101111' #---- %6b Integer ' 1000' '1001001100101100000001011010010' ' 0' Bit ' 1000' '1001001100101100000001011010010' ' 0' UInt ' 1000' '1001001100101100000001011010010' ' 0' Int ' 1000' '1001001100101100000001011010010' ' 0' '11111111111111111111111111101111' #---- %.6b Integer '001000' '1001001100101100000001011010010' '000000' Bit '001000' '1001001100101100000001011010010' '000000' UInt '001000' '1001001100101100000001011010010' '000000' Int '001000' '1001001100101100000001011010010' '000000' '11111111111111111111111111101111' #---- %06b Integer '001000' '1001001100101100000001011010010' '000000' Bit '001000' '1001001100101100000001011010010' '000000' UInt '001000' '1001001100101100000001011010010' '000000' Int '001000' '1001001100101100000001011010010' '000000' '11111111111111111111111111101111' #---- %*b Integer ' 1000' '1001001100101100000001011010010' ' 0' Bit ' 1000' '1001001100101100000001011010010' ' 0' UInt ' 1000' '1001001100101100000001011010010' ' 0' Int ' 1000' '1001001100101100000001011010010' ' 0' '11111111111111111111111111101111'