| | |
hexadecimal convertions
Please support our C# advertiser: Intel Parallel Studio Home
![]() |
System.String.Format lets you do that with the D and X formatters.
You can also just print the formatted values with Write or WriteLine because they use the same formatter strings.
C# Syntax (Toggle Plain Text)
string decString = string.Format( "{0:D}", decValue ); string hexString = string.Format( "{0:X}", hexValue );
The truth does not change according to our ability to stomach it.
![]() |
Similar Threads
- Add Hexadecimal numbers (Python)
- reading a hexadecimal number (C++)
- File extension: How to display in Hexadecimal? (Windows NT / 2000 / XP)
- hexadecimal.cpp (C++)
- Converting Hexadecimal characters to integers. (C++)
Other Threads in the C# Forum
- Previous Thread: A Speaking APP in C# with .NET 3.0
- Next Thread: Hi, caple of general questions
| Thread Tools | Search this Thread |
.net access algorithm array barchart bitmap box broadcast c# check checkbox client combobox control conversion csharp custom cyclethruopenforms data database datagrid datagridview dataset date/time datetime degrees development dll draganddrop drawing encryption enum event excel file finalyearproject form format forms function gdi+ getoutlookcontactusinfcsvfile globalization httpwebrequest image index input install installer java label list listbox mandelbrot math mono mouseclick mysql operator panel path photoshop picturebox pixelinversion post programming radians regex remote remoting richtextbox save server silverlight sleep socket sql sql-server statistics stream string table text textbox thread time timer timespan update usercontrol users validate validation visualstudio webbrowser wia windows winforms wpf xml





