programming-examples/perl/String/Field specifiers for printf.pl
2019-11-15 12:59:38 +01:00

13 lines
534 B
Perl

Specifier Description
%c Single character
%d Integer in decimal (base-10) format
%e Floating-point number in scientific notation
%f Floating-point number in "normal" (fixed-point) notation
%g Floating-point number in compact format
%o Integer in octal (base-8) format
%s Character string
%u Unsigned integer
%x Integer in hexadecimal (base-16) format