Format Specifier | Conversion Applied |
%a and %A | Floating-point hexadecimal |
%b | Boolean |
%B | |
%c | Character |
%C | |
%d | Decimal integer |
%h | Hash code of the argument |
%H | |
%e | Scientific notation |
%E | |
%f | Decimal floating point |
%g | Uses %e or %f, whichever is shorter |
%G | |
%o | Octal integer |
%n | Inserts a newline character |
%s | String |
%S | |
%t | Time and date |
%T | |
%x | Integer hexadecimal |
%% | Inserts a % sign |