Thread Subject: how do i convert string of 40 hex digits(160 bits) to 4 decimal digits(16 bits))

Subject: how do i convert string of 40 hex digits(160 bits) to 4 decimal digits(16 bits))

From: arjun p

Date: 8 Nov, 2009 20:12:02

Message: 1 of 2

i have a string of 40 hex digits (160 bits)like
=E0FAACA506CC37B0B21D02460D210E9798EEEFDB
 so how to convert it to 4 decimal digits(16 bits)?
plz

Subject: how do i convert string of 40 hex digits(160 bits) to 4 decimal

From: dpb

Date: 8 Nov, 2009 21:06:12

Message: 2 of 2

arjun p wrote:
> i have a string of 40 hex digits (160 bits)like
> =E0FAACA506CC37B0B21D02460D210E9798EEEFDB
> so how to convert it to 4 decimal digits(16 bits)?
> plz

sscanf(s,'%4x')

--

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

Contact us at files@mathworks.com