Click here to Skip to main content
16,010,650 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to write octa numbers Pin
PIEBALDconsult23-Jan-09 4:29
mvePIEBALDconsult23-Jan-09 4:29 
AnswerRe: How to write octa numbers [modified] Pin
Luc Pattyn23-Jan-09 4:48
sitebuilderLuc Pattyn23-Jan-09 4:48 
GeneralRe: How to write octa numbers Pin
PIEBALDconsult23-Jan-09 5:20
mvePIEBALDconsult23-Jan-09 5:20 
AnswerRe: How to write octa numbers [modified] Pin
Luc Pattyn23-Jan-09 5:27
sitebuilderLuc Pattyn23-Jan-09 5:27 
AnswerRe: How to write octa numbers Pin
dan!sh 22-Jan-09 21:19
professional dan!sh 22-Jan-09 21:19 
AnswerRe: How to write octa numbers Pin
musefan22-Jan-09 22:31
musefan22-Jan-09 22:31 
GeneralI think your function is 'ugly' Pin
CPallini23-Jan-09 1:51
mveCPallini23-Jan-09 1:51 
GeneralRe: I think your function is 'ugly' [modified] Pin
PIEBALDconsult23-Jan-09 8:28
mvePIEBALDconsult23-Jan-09 8:28 
CPallini wrote:
should return a string


I disagree. Given a binary representation of 10-base10 [00001010], I want to get a binary representation of 10-base8 [00001000].

I'd rather not have to convert to string and back to do that, but I see no other way currently. And it may prove to be more efficient that way anyway.


Edit:

Or more clearly; in C, the statement int x = 010 ; results in a variable that contains the value eight, but in C# the result is the value ten.
It is desirable, in some cases, for int x = Oct ( 010 ) ; (or some such syntax) in C# to produce the desired value of eight, hopefully at compile-time as is the case in C (and apparently in VB.net).

modified on Friday, January 23, 2009 3:52 PM

GeneralRe: I think your function is 'ugly' Pin
CPallini23-Jan-09 10:55
mveCPallini23-Jan-09 10:55 
GeneralRe: I think your function is 'ugly' Pin
PIEBALDconsult23-Jan-09 12:50
mvePIEBALDconsult23-Jan-09 12:50 
AnswerRe: How to write octa numbers [modified] Pin
Luc Pattyn23-Jan-09 1:59
sitebuilderLuc Pattyn23-Jan-09 1:59 
GeneralRe: How to write octa numbers [modified] Pin
PIEBALDconsult23-Jan-09 5:22
mvePIEBALDconsult23-Jan-09 5:22 
GeneralRe: How to write octa numbers Pin
musefan26-Jan-09 0:31
musefan26-Jan-09 0:31 
AnswerRe: How to write octa numbers Pin
DaveyM6923-Jan-09 0:11
professionalDaveyM6923-Jan-09 0:11 
Questioncreating dll Pin
lawrenceinba22-Jan-09 17:58
lawrenceinba22-Jan-09 17:58 
AnswerRe: creating dll Pin
PIEBALDconsult22-Jan-09 18:54
mvePIEBALDconsult22-Jan-09 18:54 
GeneralRe: creating dll Pin
Erdinc277-Oct-10 22:20
Erdinc277-Oct-10 22:20 
GeneralRe: creating dll Pin
PIEBALDconsult8-Oct-10 3:05
mvePIEBALDconsult8-Oct-10 3:05 
GeneralRe: creating dll Pin
Erdinc278-Oct-10 3:20
Erdinc278-Oct-10 3:20 
GeneralRe: creating dll Pin
PIEBALDconsult8-Oct-10 15:13
mvePIEBALDconsult8-Oct-10 15:13 
AnswerRe: creating dll Pin
Xmen Real 22-Jan-09 19:41
professional Xmen Real 22-Jan-09 19:41 
AnswerRe: creating dll Pin
Ashish Sehajpal22-Jan-09 20:24
Ashish Sehajpal22-Jan-09 20:24 
GeneralRe: creating dll Pin
lawrenceinba22-Jan-09 21:57
lawrenceinba22-Jan-09 21:57 
QuestionGetting own filename Pin
Silvyster22-Jan-09 13:21
Silvyster22-Jan-09 13:21 
AnswerRe: Getting own filename [modified] PinPopular
PIEBALDconsult22-Jan-09 13:58
mvePIEBALDconsult22-Jan-09 13:58 

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.