conversion from string to binary to decimal
-
is there any way to convert the string to binary and subsequently to decimal.
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
-
is there any way to convert the string to binary and subsequently to decimal.
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
Cheers, Vikram.
Zeppelin's law: In any Soapbox discussion involving Stan Shannon, the probability of the term "leftist" or "Marxist" appearing approaches 1 monotonically. Harris' addendum: I think you meant "monotonously". Martin's second addendum: Jeffersonian... I think that should at least get a mention.
-
Cheers, Vikram.
Zeppelin's law: In any Soapbox discussion involving Stan Shannon, the probability of the term "leftist" or "Marxist" appearing approaches 1 monotonically. Harris' addendum: I think you meant "monotonously". Martin's second addendum: Jeffersonian... I think that should at least get a mention.
i am asking this question because out of (02 , 1 , 1a) both are string type values , how should i ascertain programatically which is bigger(I mean , how to align them in ascending order)? I thought , first i should convert the string to binary and subsequently to decimal. Am I doing right ?
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
-
is there any way to convert the string to binary and subsequently to decimal.
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
if you convert to a number, it will be a number, it won't be binary or decimal. Those are rendering details. int.TryParse turns a string to an int.
Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
-
if you convert to a number, it will be a number, it won't be binary or decimal. Those are rendering details. int.TryParse turns a string to an int.
Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
can u suggest me a logic regarding the list 1 , 11 , 2 ,aa , 1a to align in the ascending order ?
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
-
can u suggest me a logic regarding the list 1 , 11 , 2 ,aa , 1a to align in the ascending order ?
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
Are these hex numbers ? I guess write a sort routine to turn them into numbers and sort from there.
Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
-
i am asking this question because out of (02 , 1 , 1a) both are string type values , how should i ascertain programatically which is bigger(I mean , how to align them in ascending order)? I thought , first i should convert the string to binary and subsequently to decimal. Am I doing right ?
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
-
Read this article: http://www.codeproject.com/KB/recipes/csnsort.aspx[^]
Today , i wrote the code , for sorting the datatable according to the decimal type column or string type column.All i have to do is to pass the datatable and the column number according to which one has to sort. I want to improve the code. Should i display it here ?
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!