Hi, Try one of the codes posted here which is in C, but I bet you can translate it to suit your needs. :D
http://www.faqs.org/qa/qa-430.html Regards, Benj On Sep 4, 9:44 pm, Giox <[email protected]> wrote: > Good morning, I have a problem that I think is quite simple, but I'm > not able to fix it by my self. > > I have two eight bit numbers, suppose: > > a_low = 3 > a_high = 2 > > I would like to create a string like the following one: > > 00000010 00000011 > > But I'm not able to force the left padding of the number. > I'm acting as follows: > > textBoxSlot1->Text = Convert::ToString(a_high ,2)+ > Convert::ToString(a_low ,2); > > However by this way I don't get the left padding with 0. > I tried using String::Format, but I don't know how. > Any help will be apreciated
