At 09:29 04/09/2002 +0200, Romuald DELAVERGNE wrote:
Le 2002.09.03 17:06, kamel a �crit :
Une question b�te, comment faites-vous le calcul ?

Un moyen simple et rapide de faire des conversions hexad�cimale <-> d�cimale � partir d'un shell:

 * printf "0x%X\n" nombreDecimal

l�, ca marche :
aristote:~# printf "0x%X\n" 255
0xFF


 * printf "%d\n" nombreHexadecimal (pr�c�der le nombre par 0x : 0xff par ex.)

l�, ca ne marche pas tres bien
aristote:~# printf "%d\n" 0xff
bash: printf: 0xff: illegal number


C'�tait the tip of the day :-)

merci



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Répondre à