On 6 September 2010 06:35, Jamie Fraser <[email protected]> wrote:

> Convert::ToString(a_high ,2).PadLeft(8) or something like that?
>
>


this presumes in padleft(8)   the number 8 won't vary.



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
>



-- 
Charles A. Lopez
[email protected]

What's your vision for your organization?
What's your biggest challenge?

Let's talk.
(IBM Partner)

Reply via email to