Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Decimal to BaseX Converter

Featured Replies

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

Now tell the truth, you did that just for fun didn't you?

  • Author

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.

Hi JT.

Seems like someone has too much time on their hands.Chair-Fall.gif

I found out after the fact that it is a v7 file,

Is this a remake of a v5 you posted earlier ?

Lee

cool.gif

If you're trying decode that secret message without the decoder ring, I think I may already have the answer: "D R I N K M O R E O V A L T I N E".

wink.gif

  • Author

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.

touch

  • Author

Success! Here's an Integer to Alpha and Alpha to Integer file. The functions are thoroughly commented, I hope.

Int2Alpha2Int.zip

Your secret code breaking scheme is complete!

Seriously, though, it's impressive.

  • Author

Thanks, Ender!

And here's the 5.5 version for Lee. Unfortunately, it must be scripted. But at least it works!

Int2Alpha2Intv5.zip

Very Slick wink.gif

I'll need to take a look at it when my company leaves.

Thanks JT,

Lee

  • 3 months later...

Thanks, guys, this is great!

Now if Santa will just bring me that Red Ryder BB gun, my holiday season will be complete...

  • Author

Done.

Barbecue, you'd shoot your eye out with that!

Wow that int to alpha converter is cool.

  • Author

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

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

  • Author

Thanks, LaRetta!

It only took three months for this to catch your eye? wink.gif

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

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

Did any of my posts make it to your Study folder? smirk.gif

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

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.