Convert huge Hex number to Decimal

dbboy

Member
Dear guys
I am trying to convert huge hex number to dec in Vb6 but I couldn't manage .
I found one function which it could convert 23 hex number to dec but I want to convert more for example 300 or even more.
I would like to ask you guys if you have source code for that ,please post it here .
Thank you .
 

aff - SEvEN

Banned
Hi dbboy

How are you
? :)

This attached source code from VB5 and VB6

Ok ... This code will convert any decimal, binary or hex number into the other two formats. A good code for those who want to learn how to use functions with multiple and optional
parameters, also maths functions and creating a custom GUI. The program handles 8bit, 16bit, fixed-point, floating point and any length binary upto 31 bits

Full instructions given in the help window + extensively commented code. I'd appreciate some votes for this if you think it deserves them

+

program can take text and put out the ASCII, Binary, Octal, and Hexadecimal code for it, it can also return ASCII and Binary code to text

Cheers​

Shadi​
 

پیوست ها

  • Universal Converter 2.zip
    78.3 کیلوبایت · بازدیدها: 17
  • ASCII.zip
    4.8 کیلوبایت · بازدیدها: 4

dbboy

Member
Hi dbboy

How are you
? :)

This attached source code from VB5 and VB6

Ok ... This code will convert any decimal, binary or hex number into the other two formats. A good code for those who want to learn how to use functions with multiple and optional
parameters, also maths functions and creating a custom GUI. The program handles 8bit, 16bit, fixed-point, floating point and any length binary upto 31 bits

Full instructions given in the help window + extensively commented code. I'd appreciate some votes for this if you think it deserves them

+

program can take text and put out the ASCII, Binary, Octal, and Hexadecimal code for it, it can also return ASCII and Binary code to text

Cheers​

Shadi​

Dear aff - SEvEN
I really apreciate your help.
I checked the programs but unfortunatly if you test it you can just insert 7 hex digit to convert ,it will not accept more .
I modified it but still it's not working properly after 100 digits and as you can see I need to convert more than 300 digits.
Actually I found the solution some how.
Thank you very much for your good will.
 

aff - SEvEN

Banned
convert 300 digits

Dear aff - SEvEN
I really apreciate your help.
I checked the programs but unfortunatly if you test it you can just insert 7 hex digit to convert ,it will not accept more .
I modified it but still it's not working properly after 100 digits and as you can see I need to convert more than 300 digits.
Actually I found the solution some how.
Thank you very much for your good will.

Hi dbboy
lol ... convert 300 digits
?!

uuuuuuuuuum! convert 300 digits huge Hex number to Decimal
?

Ok , function that converts a huge number as string from a base to another one

INPUTS
Word As String , the huge number, up to 32,000 digits to convert

FromBase As Integer , the base in witch Word is written

ToBase As Integer , the base in witch Word is to convert

Separator As String , this Optional variable is the decimal separator

usely the point and sometimes the comma FromBase and ToBase are integers from 2 to 36

OUTPUTS
the function returns the huge number converted from FromBase to ToBase as string. It returns "" if Word is empty or if FromBase or ToBase is not between 2 and 36

Please using Attached programm and test

Cheers​
 

پیوست ها

  • Convert_HugeHex_to_Dec.zip
    54.3 کیلوبایت · بازدیدها: 8

dbboy

Member
Hi dbboy
lol ... convert 300 digits
?!

uuuuuuuuuum! convert 300 digits huge Hex number to Decimal
?

Ok , function that converts a huge number as string from a base to another one

INPUTS
Word As String , the huge number, up to 32,000 digits to convert

FromBase As Integer , the base in witch Word is written

ToBase As Integer , the base in witch Word is to convert

Separator As String , this Optional variable is the decimal separator

usely the point and sometimes the comma FromBase and ToBase are integers from 2 to 36

OUTPUTS
the function returns the huge number converted from FromBase to ToBase as string. It returns "" if Word is empty or if FromBase or ToBase is not between 2 and 36

Please using Attached programm and test

Cheers​

Wow .
Thaaaaaaaaaaat's Fantastic
Thank you veeeeeeeeeeery much aff - SEvEN
Before I found a program like this and try to modify it ,actually that one is working as well but the source you just send it is terrific,it's really fast .
The idea behind it ,is perfect and I really apreciate your help .
Now I am trying to add some code to it to have this option for converting 16 to 64 bit .
you really made my day.
I hope I can help you in the future.
Cheers.
 

جدیدترین ارسال ها

بالا