Intrinsic Base 10 - Base 2 function

  • Thread starter Thread starter Ick
  • Start date Start date
I

Ick

Is an intrinsic function available in either VB or C# that converts a base
10 long to base 2? I can do the math, but it seems liek a huge klooj
 
Convert.ToString(YourNumber, 2)

--


HTH

Éric Moreau, MCT, MCSD
Conseiller principal / Senior consultant
Concept S2i inc. (www.s2i.com)
 
Ick said:
Is an intrinsic function available in either VB or C# that converts a base
10 long to base 2? I can do the math, but it seems liek a huge klooj

Have a look at the 'Convert.ToInt32' method. There is one overload
available that allows you to specify a base.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top