| | |
hexadecimal convertions
Please support our C# advertiser: $4.95 a Month - ASP.NET Web Hosting – Click Here!
![]() |
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 asp.net bitmap box broadcast c# check checkbox client combobox communication control conversion csharp database datagrid datagridview dataset datetime dbconnection decryption degrees design developer draganddrop drawing encryption enum eventhandlers excel file firefox form format forms function gdi+ grantorrevokepermissionthroughc#.net hospitalmanagementsystem image input install interface java libraries list loop marshalbyrefobject math mouseclick movingimage mysql netcfsvcutil.exe numeric operator path photoshop php picturebox pixelinversion platform polynomial post programming properties radians read regex remoting richtextbox server sleep socket sql statistics string stringformatting study sun system.servicemodel table tcpclientchannel text textbox thread time timer update usb usercontrol validation visualstudio webbrowser winforms wpf wpfc# xml





