Solved

How to convert an Unsigned int32 value to 8 byte long hex value.

Posted on 2012-03-27
3
529 Views
Last Modified: 2012-03-27
I have a unsigned int32 value in variable in c# and i need to convert it into 8 byte long hexadecimal value how can i do this
0
Comment
Question by:ziorinfo
  • 2
3 Comments
 
LVL 20

Accepted Solution

by:
BuggyCoder earned 180 total points
ID: 37775014
UInt32 val = 12316667;
var data = val.ToString("X");

Open in new window

0
 

Author Comment

by:ziorinfo
ID: 37775031
will it give me 8 byte long hex value always ?
0
 
LVL 20

Expert Comment

by:BuggyCoder
ID: 37775038
depends on your input, if length is less than 8 bytes add required number of 0 bytes to it to make it 8 bytes...
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now