?
Solved

Math: Convert base 10 to base 32

Posted on 2006-10-26
9
Medium Priority
?
1,843 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 1000 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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 …
Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…

777 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