x


C# Number to binary

I trying to display a 0x000... value into string

Is it possible with C# ?

I found this : http://en.csharp-online.net/CSharp_FAQ:_How_display_int_as_a_binary_number,_a_string_of_0s_and_1s

But the Convert class is not autocomplete by monodevelop.

Thx !

more ▼

asked May 26 '11 at 11:05 AM

Lego gravatar image

Lego
31 4 4 6

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

Use System.Convert(.....), or add a "using System" at the top of your script.

more ▼

answered May 26 '11 at 11:17 AM

Wolfram gravatar image

Wolfram
9k 8 20 52

Oh, System.Convert, indeed. Thanks !

May 26 '11 at 11:19 AM Lego
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x4134
x226
x76
x28

asked: May 26 '11 at 11:05 AM

Seen: 1725 times

Last Updated: May 26 '11 at 11:20 AM