473,396 Members | 1,666 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Conversion of ASCII hex number to decimal conversion

I want to convert ASCII hex number to decimal conversion.

For Example :

1: F01A is converted into Decimal: 61466
2: FFFC64F0 is converted into Decimal: 4294730992

What is the best way to create a smaller function for the above like conversion.

Pls.send me the complete function
Oct 19 '08 #1
4 4447
debasisdas
8,127 Expert 4TB
you need to use DEC for the purpose.

msgbox dec(&HFFFC64F0)
Oct 19 '08 #2
Thanks for your reply.

I tried as per your suggestion, But it gives error as Dec is not SUB or Function not defined.

Now Pls. Help me.



you need to use DEC for the purpose.

msgbox dec(&HFFFC64F0)
Oct 20 '08 #3
QVeen72
1,445 Expert 1GB
Hi,

Prefix the Hex Number with "&H", that way VB understands, its a Hex number..
and Get the Decimal Equivalent using CDEC function :

Expand|Select|Wrap|Line Numbers
  1. MsgBox CDEC("&HF01A")
  2.  
Regards
Veena
Oct 21 '08 #4
Hi,

Prefix the Hex Number with "&H", that way VB understands, its a Hex number..
and Get the Decimal Equivalent using CDEC function :

Expand|Select|Wrap|Line Numbers
  1. MsgBox CDEC("&HF01A")
  2.  
Regards
Veena
Thanks for your affort.

Yes, it will work for values less then 7FFFFFFF. But what after that?

But, Now no need to worry. I had solve the problem.

Again Thanking you.
Oct 23 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

22
by: Martin Trautmann | last post by:
Hi all, is there any kind of 'hiconv' or other (unix-like) conversion tool that would convert UTF-8 to HTML (ISO-Latin-1 and Unicode)? The database output is UTF-8 or UTF-16 only - Thus almost...
5
by: lkrubner | last post by:
I know I'm missing something obvious, but I looked hard at this page and did not see the format of the return specified: http://us3.php.net/manual/en/function.ord.php >From the limited example...
18
by: Brad | last post by:
I have a problem in that I need to change a large decimal value into its hex equivalent. The largest decimal value I need to represent as hex is 25516777215. The problem here is that this number...
3
by: Director - Minvent | last post by:
Hi, I am reading from a serial port from a device which sends over an ascii character. It uses the full extended 256 character set and therefore has non-printing characters too. So what i want...
3
by: kimi | last post by:
hi all, can anyone tell me how to convert a comp-1 floating point number to a decimal in REXX??
9
by: =?Utf-8?B?RGFu?= | last post by:
I have the following code section that I thought would strip out all the non-ascii characters from a string after decoding it. Unfortunately the non-ascii characters are still in the string....
12
by: fermineutron | last post by:
I am trying to write a function which will convert a large ascii number, say 100 ascii digits, to its binary representation. It seems that evey algorithm I am trying to think of is backwards. ...
13
by: Eps | last post by:
Hi there, I believe all strings in .net are unicode by default, I am looking for a way to remove all non ascii characters from a string (or optionally replace them). There is an article on...
0
by: squrel | last post by:
Hello All, I have a table in my database with a field itemqty and the type was int and need to change it to decimal as i need the decimal point in my textbox.. i have a code for integer ascii...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.