Solved

Math: Convert base 10 to base 32

Posted on 2006-10-26
9
1,828 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

689 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