Jump to content
Server Maintenance This Week. ×

Decimal to BaseX Converter


This topic is 7095 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Here's a Decimal to Base-n converter for Bases 2 through 36 using a fairly simple algorithm. Simply change the number in the Base column to see the converted results for the first 20,000 integers. Note that zero is excluded in the sample, but accounted for in the main function.

BaseX.zip

Link to comment
Share on other sites

Actually, I did it to help solve a problem that's been bugging me for months involving converting integers to alpha characters. First I needed a solid grasp of converting to base 27. So I decided to figure it out for Base X.

I hope to post the alpha file soon, if I get it resolved today.

Link to comment
Share on other sites

Lee, nope I never resolved this for 5.5. But it is in the Custom Function forum, which implies Dev 7. wink.gif

Ender, daddy's gonna kill Ralphie! Seriously though, it was for this thread.

Link to comment
Share on other sites

  • 3 months later...

Thanks. It was a lot easier than I had tried to make it for days on end. I nearly gave up until I found a C program someone had written that was very similar. Then it was like a 'duh!' ephiphany and I banged it out in a couple of hours. crazy.gifshocked.gifooo.giflaugh.gif

Link to comment
Share on other sites

Very cool, JT! Bow.1.gif

Now how am I going to get any work done when I have this new toy to devour? So much to learn and so little time. hairout.gif

Within 30 minutes, I've been hit with several new ideas and uses. I can't wait to take them for a test drive! grin.gif

LaRetta

Link to comment
Share on other sites

Three months, JT!? How time flies!

Well, I admit I read the subject ... and even read your original post. And it made no sense to me and I couldn't see what it could possibly be used for! Since I had no idea what BaseX Converter meant, I doubted I would use it for a while (my math skills are a tad-bit weak, hah!) and I've been wonderfully busy. I'm beginning to realize that these 'strange math things' you use are actually applicable in real-life situations and aren't simply abstract, archaic concepts. shocked.gif

I remember copying the post to my Study folder and there it sat ... along with 130 other items of yours. crazy.gif

I'm a bit behind ... If you would slow down a bit, I might catch up on them. yep.gif

LaRetta

Link to comment
Share on other sites

Mike, my Study folder contains 12 folders. I have a Queue folder, an Andy folder, a Ray folder, ... and an Ender folder ... and 8 others; all whose wisdom, principles, and clarity of thinking, I hope to totally absorb - even more than a specific technique they may implement in any single post (although they are certainly linked)! smile.gif

LaRetta

Link to comment
Share on other sites

This topic is 7095 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.