version 1.13, 2001/02/17 17:15:27 |
version 1.14, 2002/11/14 02:57:28 |
|
|
.Sh EXAMPLES |
.Sh EXAMPLES |
Convert a hexidecimal value to decimal and print it out: |
Convert a hexidecimal value to decimal and print it out: |
.Pp |
.Pp |
.D1 Ic printf \&"%d\en\&" 0x20 |
.D1 Ic $ printf \&"%d\en\&" 0x20 |
.Pp |
.Pp |
Print the decimal representation of the character 'a' (see |
Print the decimal representation of the character 'a' (see |
.Xr ascii 7 ) : |
.Xr ascii 7 ) : |
.Pp |
.Pp |
.D1 Ic printf \&"%d\en\&" \e'a |
.D1 Ic $ printf \&"%d\en\&" \e'a |
.Sh SEE ALSO |
.Sh SEE ALSO |
.Xr echo 1 , |
.Xr echo 1 , |
.Xr printf 3 |
.Xr printf 3 |