By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,967 Members | 1,687 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,967 IT Pros & Developers. It's quick & easy.

Base conversion

P: n/a
How exactly would you convert to/from a specific, arbitrary base (in this case, 54)?
Jul 16 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On 15 Aug 2003 23:30:39 -0700, za************@excite.com (Zachary Antolak)
wrote:
How exactly would you convert to/from a specific, arbitrary base (in this case, 54)?


http://uk2.php.net/base_convert

... handles up to base 32, using 1-9 and a-z for the digits. How are you
representing a base-54 number?

You'd basically need to split each digit into an integer, 0-53, then raise
each to the power of its position in the original base-54 number (I think).

--
Andy Hassall (an**@andyh.co.uk) icq(5747695) (http://www.andyh.co.uk)
Space: disk usage analysis tool (http://www.andyhsoftware.co.uk/space)
Jul 16 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.