Click here to Skip to main content
15,896,726 members
Home / Discussions / C#
   

C#

 
QuestionConvert ulong to binary i.e. ulong.ToBinaryString() Pin
DaveyM6911-Jul-08 2:32
professionalDaveyM6911-Jul-08 2:32 
AnswerRe: Convert ulong to binary i.e. ulong.ToBinaryString() Pin
Luc Pattyn11-Jul-08 3:05
sitebuilderLuc Pattyn11-Jul-08 3:05 
GeneralRe: Convert ulong to binary i.e. ulong.ToBinaryString() Pin
DaveyM6911-Jul-08 3:28
professionalDaveyM6911-Jul-08 3:28 
AnswerRe: Convert ulong to binary i.e. ulong.ToBinaryString() Pin
User 665811-Jul-08 3:08
User 665811-Jul-08 3:08 
GeneralRe: Convert ulong to binary i.e. ulong.ToBinaryString() Pin
DaveyM6911-Jul-08 3:36
professionalDaveyM6911-Jul-08 3:36 
GeneralRe: Convert ulong to binary i.e. ulong.ToBinaryString() Pin
DaveyM6911-Jul-08 4:19
professionalDaveyM6911-Jul-08 4:19 
GeneralRe: Convert ulong to binary i.e. ulong.ToBinaryString() Pin
User 665811-Jul-08 6:38
User 665811-Jul-08 6:38 
AnswerRe: Convert ulong to binary i.e. ulong.ToBinaryString() Pin
carbon_golem11-Jul-08 3:15
carbon_golem11-Jul-08 3:15 
Are you asking how to get the binary representation of the number?
i.e.
Int32 x = 15;
String s = x.ToString("");
and have s print "00000000000000000000000000001111"?

If that's the case, then you'll have to roll your own formatter, I remember looking a while back for something like this and came up with nothing. Doesn't mean it doesn't exist, I'm saying I had to write my own extension method to it.

Scott P

“It is practically impossible to teach good programming to students that have had a prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration.”
-Edsger Dijkstra

GeneralRe: Convert ulong to binary i.e. ulong.ToBinaryString() Pin
DaveyM6911-Jul-08 3:39
professionalDaveyM6911-Jul-08 3:39 
AnswerMessage Closed Pin
19-Nov-12 19:11
professional0xfeeddeadbeef19-Nov-12 19:11 
GeneralRe: Convert ulong to binary i.e. ulong.ToBinaryString() Pin
DaveyM6919-Nov-12 19:15
professionalDaveyM6919-Nov-12 19:15 
RantRe: Convert ulong to binary i.e. ulong.ToBinaryString() Pin
0xfeeddeadbeef20-Nov-12 5:43
professional0xfeeddeadbeef20-Nov-12 5:43 
GeneralRe: Convert ulong to binary i.e. ulong.ToBinaryString() Pin
DaveyM6920-Nov-12 8:26
professionalDaveyM6920-Nov-12 8:26 
QuestionWord Frequency Pin
flowingsun11-Jul-08 2:13
flowingsun11-Jul-08 2:13 
AnswerRe: Word Frequency Pin
carbon_golem11-Jul-08 2:31
carbon_golem11-Jul-08 2:31 
AnswerRe: Word Frequency Pin
Thomas Stockwell11-Jul-08 3:58
professionalThomas Stockwell11-Jul-08 3:58 
AnswerRe: Word Frequency Pin
Guffa11-Jul-08 6:57
Guffa11-Jul-08 6:57 
AnswerRe: Word Frequency Pin
Alan Balkany11-Jul-08 9:38
Alan Balkany11-Jul-08 9:38 
QuestionWeb Service tutorial in depth Pin
George_George11-Jul-08 2:08
George_George11-Jul-08 2:08 
AnswerRe: Web Service tutorial in depth Pin
Vimalsoft(Pty) Ltd11-Jul-08 6:42
professionalVimalsoft(Pty) Ltd11-Jul-08 6:42 
GeneralRe: Web Service tutorial in depth Pin
George_George12-Jul-08 23:47
George_George12-Jul-08 23:47 
GeneralRe: Web Service tutorial in depth Pin
Vimalsoft(Pty) Ltd13-Jul-08 14:29
professionalVimalsoft(Pty) Ltd13-Jul-08 14:29 
GeneralRe: Web Service tutorial in depth Pin
George_George13-Jul-08 19:53
George_George13-Jul-08 19:53 
QuestionI'm stuck in datagridview Pin
Technobizz11-Jul-08 1:37
Technobizz11-Jul-08 1:37 
AnswerRe: I'm stuck in datagridview Pin
Vimalsoft(Pty) Ltd11-Jul-08 6:49
professionalVimalsoft(Pty) Ltd11-Jul-08 6:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.