Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string[] hexRemainders = new string[] { "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F" };
- string hexadecimal = string.Empty;
- do
- {
- hexadecimal = hexRemainders[number & 15] + hexadecimal;
- number >>= 4;
- } while (number != 0);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement