From: miller at uinpluxa.npl.uiuc.edu (M.A.Miller)
Date: 09 Apr 1999 11:23:59 -0500
Subject: formating string like sprintf
References: <370e1d60@isoit370.bbn.hp.com>
Message-ID: <7690c1vk2o.fsf@zero.npl.uiuc.edu>
X-UID: 1303                                                  

>>>>> "Monnet" == Monnet  <BRUNO_MONNET at Non-HP-France-om1.om.hp.com> writes:

    > How can I format a string like using sprintf (mybuffer,
    > "%02x", myhex_value) ?

Like this:

>>> myhex_value = 1223 
>>> mybuffer = "%02x" % ( myhex_value )
>>> print mybuffer
4c7




