Solved

Math: Convert base 10 to base 32

Posted on 2006-10-26
9
1,822 Views
Last Modified: 2008-01-09
I know that VB.NET doesn't have a ConvertToBase(Number,Base) built in.

Does someone have any base 32 functions already whipped up?

I need something like:

ConvertToBase32(byval Input as integer) as string

and

ConvertFromBase32(byval Input as string) as integer

Thanks!
0
Comment
Question by:thomp361
  • 4
  • 3
9 Comments
 
LVL 5

Expert Comment

by:xersoft
ID: 17812847
0
 

Author Comment

by:thomp361
ID: 17812942
Saw it, it works but the padding has issues...I could just modify that if no one else has any pre-made functions.  

I can't believe this isn't built into the framework!
0
 
LVL 5

Expert Comment

by:xersoft
ID: 17818328
is there anything in here that will help you?

system.Text.UTF32Encoding
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 5

Expert Comment

by:xersoft
ID: 17818776
Sorry I don't believe this is what you want.
0
 

Author Comment

by:thomp361
ID: 17818789
nope, thanks for the comment though.
0
 
LVL 5

Accepted Solution

by:
xersoft earned 500 total points
ID: 17818865
Here is another piece of code you might be able to use. It's pretty old but you can probably convert it to .net.

http://www.programmersheaven.com/download/320/download.aspx
0
 

Author Comment

by:thomp361
ID: 18032457
I guess that example will have to work, thanks!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

863 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

26 Experts available now in Live!

Get 1:1 Help Now