Convert::ToString(a_high ,2).PadLeft(8) or something like that?
On Sat, Sep 4, 2010 at 2: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
