www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - converting hexidecimals into strings

reply llee <Larry workingwondersus.com> writes:
Does anyone know of an efficient way to convert integers into strings that
represent the integer as a hexadecimal?
Oct 03 2008
parent "Jarrett Billingsley" <jarrett.billingsley gmail.com> writes:
On Fri, Oct 3, 2008 at 5:46 PM, llee <Larry workingwondersus.com> wrote:
 Does anyone know of an efficient way to convert integers into strings that
represent the integer as a hexadecimal?
If you're using Phobos, std.string.toString(number, 16). If Tango, tango.text.convert.Integer.toString(number, "x").
Oct 03 2008