In C# how do I convert a short to it's individual bits using a struct?
-
-
Answer:
System.Console.WriteLine(convertStuff.co… public struct convertStuff { public static string convertShortToBitString(short dataValue) { short x = dataValue; System.Text.StringBuilder output = new System.Text.StringBuilder(); for (int y=7; y>-1; y--) { output.Insert(0, x%2); x = (short) ((int) x / 2); } return output.ToString(); } }
malin_ar... at Yahoo! Answers Visit the source
Related Q & A:
- How do I convert a PDF file to PDF/A in Delphi?Best solution by softwarerecs.stackexchange.com
- How do I convert a bitmap to vector?Best solution by Super User
- How can I convert a string number to a number in Perl?Best solution by Stack Overflow
- How do I send a short DVD by email?Best solution by Yahoo! Answers
- How do I write a short business plan?Best solution by sba.gov
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.