Show Output
Format Integer Values Using printf()
", $num1); // Binary representation printf("%%c = %c
", $num3); // The ASCII Character printf("%%d = %d
", $num1); // Standard integer representation printf("%%d = %d
", $num2); // Standard integer representation printf("%%e = %e
", $num1); // Scientific notation (lowercase) printf("%%E = %E
", $num1); // Scientific notation (uppercase) printf("%%u = %u
", $num1); // Unsigned integer representation (positive) printf("%%u = %u
", $num2); // Unsigned integer representation (negative) printf("%%f = %f
", $num1); // Floating-point representation (locale aware) printf("%%F = %F
", $num1); // Floating-point representation (non-locale aware) printf("%%g = %g
", $num1); // Shorter of %e and %f printf("%%G = %G
", $num1); // Shorter of %E and %f printf("%%o = %o
", $num1); // Octal representation printf("%%s = %s
", $num1); // String representation printf("%%x = %x
", $num1); // Hexadecimal representation (lowercase) printf("%%X = %X
", $num1); // Hexadecimal representation (uppercase) printf("%%+d = %+d
", $num1); // Sign specifier (positive) printf("%%+d = %+d
", $num2); // Sign specifier (negative) ?>