Login | Register







Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 12 posts ] 
Author Message
 Post subject: Translating between bases
PostPosted: April 25th, 2012, 8:44 am 
Captain
Captain
User avatar

Joined: October 13th, 2009, 3:59 am
Posts: 3502
Location: Cork, Ireland
In case you decide to have different peoples use different bases for their numeric systems in your world, as I did, I thought it might be helpful to tell you how I switch numbers between bases. * smiles * It took me awhile to work out the best way of doing it.

There are basically two systems I use. The reason I don't only use one is because different ones work better for different things. One of them makes it easy to switch from the new number base (hereafter referred to by the variable N) to base 10, the other works best vice-versa. If you use both it makes it so you don't have to do any math operations in N, which are difficult to do, if you are not used to it. :D Especially long-division....

So, the first one, for switching from base 10 to N (Both methods work whether N is larger than base 10 or smaller):

1) You divide, in base 10, the number you wish to translate (hereafter referred to as x) by N.

2) Take the remainder, and write it down as the smallest digit of the translated number (even if it is 0, as you might guess).

3) Divide the answer to your last problem by N.

4) Repeat step 2.

5) Repeat step 3.

6) Continue repeating until the answer is too small to divide by N, then place it as the largest digit of the translated number.

And...that's it.

Note, though, that if N is greater than base 10, you must use letters or something else to stand for the numbers between. 10, 11, and so forth.


The next system, for translating a number in N to base 10:

1) Make a table of the base 10 equivalents of 10, 100, 1000, and so on as far as you need, in N. (This is easy, it only involves multiplication, you know.)

2) Divide x into its addends, by places. For example, 1275 equals 1000+200+70+5.

3) Multiply the equivalent of each place by the number of them that there is in each addend of x. Does...that make sense? Basically if you take the thousands addend, you look at how many thousands are in it (three thousands in 3000, you know), and multiply that by the equivalent of a thousand on the table you made.

4) Add all the converted addends.

And there's your number. :)


I will try to give more explanation if someone wants it.* smiles * I love math.


Top
 Offline Profile  
 
 Post subject: Re: Translating between bases
PostPosted: April 26th, 2012, 9:29 pm 
Foundational Member
Foundational Member
User avatar

Joined: February 16th, 2010, 10:36 pm
Posts: 2603
:shock: *scrambles around, scouring the HW rules, along with old policy threads* I could've sworn it was against some natural law to bring math into HW! ;)

_________________
~Seer~

"I think armpit hair's pretty intimate!" - Roager

"I am so glad I'm getting locked in the basement today." - Airianna Valenshia

"You are the laughter I forgot how to make." - Calista Beth

"Sorry, I was busy asphyxiating Mama R." - Seer

"I'm a man of many personalities, but tell you what? They're all very fond of you." - Sheogorath from Elder Scrolls Online


Top
 Offline Profile  
 
 Post subject: Re: Translating between bases
PostPosted: April 27th, 2012, 5:40 am 
Captain
Captain
User avatar

Joined: October 13th, 2009, 3:59 am
Posts: 3502
Location: Cork, Ireland
Mimetes the Seer wrote:
:shock: *scrambles around, scouring the HW rules, along with old policy threads* I could've sworn it was against some natural law to bring math into HW! ;)


* glares * If there is, then – then – * splutters * I can't live without math! It's one of the funnest things I do! The only thing I have ever had to complain about math is that we don't have the money right now to buy a text on advanced calculus! I write poetry about math! I dream about math! Zero is one of my best friends!


Top
 Offline Profile  
 
 Post subject: Re: Translating between bases
PostPosted: April 27th, 2012, 1:57 pm 
Captain
Captain
User avatar

Joined: January 19th, 2011, 10:06 am
Posts: 3652
Location: Colorado, currently
Discord Username: Varon
Oh my... :shock:

I had never even considered having a different numerical system.

_________________
I have not come to raise hell, but to bring your false Eden crashing down around your ears- Undecided project


Top
 Offline Profile  
 
 Post subject: Re: Translating between bases
PostPosted: April 30th, 2012, 1:59 am 
Foundational Member
Foundational Member
User avatar

Joined: December 18th, 2010, 10:18 am
Posts: 3404
Location: At a computer.
*will have to examine this in detail sometime soon* :cool: I love doing stuff with math.

My one half-project has been to figure out the Earth math for a system based on pi. :D

_________________
Somewhere in Georgia an alien-twin of Seer's is wandering around.

Main Fantasy Project:
Portals of Prophecy -- mid-development, early-early-snippet-writing stage


Top
 Offline Profile  
 
 Post subject: Re: Translating between bases
PostPosted: May 1st, 2012, 10:02 am 
Captain
Captain
User avatar

Joined: October 13th, 2009, 3:59 am
Posts: 3502
Location: Cork, Ireland
Varon Netzah Mimetes wrote:
Oh my... :shock:

I had never even considered having a different numerical system.


It's an interesting detail to consider. :D

Ira Mordecai Mimetes wrote:
*will have to examine this in detail sometime soon* :cool: I love doing stuff with math.

My one half-project has been to figure out the Earth math for a system based on pi. :D


A...system of what? * slightly bewildered * A numeric system? 0.0


Top
 Offline Profile  
 
 Post subject: Re: Translating between bases
PostPosted: May 1st, 2012, 11:20 pm 
Foundational Member
Foundational Member
User avatar

Joined: December 18th, 2010, 10:18 am
Posts: 3404
Location: At a computer.
No... just thinking math through as if pi had the value of 1. And then thinking of the cultures that would use math like that. :cool:

_________________
Somewhere in Georgia an alien-twin of Seer's is wandering around.

Main Fantasy Project:
Portals of Prophecy -- mid-development, early-early-snippet-writing stage


Top
 Offline Profile  
 
 Post subject: Re: Translating between bases
PostPosted: May 3rd, 2012, 8:04 pm 
Moderator
Moderator
User avatar

Joined: June 21st, 2011, 1:27 pm
Posts: 1408
Location: Southeast MI
One language I worked on in middle and high school counted in base 7.

Ira Mordecai Mimetes wrote:
No... just thinking math through as if pi had the value of 1. And then thinking of the cultures that would use math like that. :cool:

I can't imagine any way that could work; irrational numbers are useful in many contexts for describing phenomena that the rational numbes alone cannot, but the only useful expression I know of that doesn't use rational numbers is Euler's identity (e-to-the-quantity-pi-times-i-equals-negative-one). But if you can imagine how it might work, more power to you!

_________________
Originally inspired to write by reading C.S. Lewis, but can be as perfectionist as Tolkien or as obscure as Charles Williams.

Author of A Year in Verse, a self-published collection of poetry: available in paperback and on Kindle; a second collection forthcoming in 2022 or 2023, God willing (betas wanted!).

Creator of the Shine Cycle, an expansive fantasy planned series, spanning over two centuries of an imagined world's history, several universes (including various alternate histories and our own future), and the stories of dozens of characters (many from our world).

Developer of Strategic Primer, a strategy/simulation game played by email; currently in a redesign phase after the ending of "the current campaign" in 2022.

Read my blog!


Top
 Offline Profile  
 
 Post subject: Re: Translating between bases
PostPosted: May 3rd, 2012, 11:08 pm 
Foundational Member
Foundational Member
User avatar

Joined: December 18th, 2010, 10:18 am
Posts: 3404
Location: At a computer.
kingjon wrote:
One language I worked on in middle and high school counted in base 7.

Ira Mordecai Mimetes wrote:
No... just thinking math through as if pi had the value of 1. And then thinking of the cultures that would use math like that. :cool:

I can't imagine any way that could work; irrational numbers are useful in many contexts for describing phenomena that the rational numbes alone cannot, but the only useful expression I know of that doesn't use rational numbers is Euler's identity (e-to-the-quantity-pi-times-i-equals-negative-one). But if you can imagine how it might work, more power to you!
It's possible that I'm completing messing up the math. :roll:

_________________
Somewhere in Georgia an alien-twin of Seer's is wandering around.

Main Fantasy Project:
Portals of Prophecy -- mid-development, early-early-snippet-writing stage


Top
 Offline Profile  
 
 Post subject: Re: Translating between bases
PostPosted: May 4th, 2012, 10:33 am 
Captain
Captain
User avatar

Joined: October 13th, 2009, 3:59 am
Posts: 3502
Location: Cork, Ireland
Ira Mordecai Mimetes wrote:
No... just thinking math through as if pi had the value of 1. And then thinking of the cultures that would use math like that. :cool:


Pi...can't have the value of one. because it isn't one. * lop-sided grin * So – are you meaning that this culture divides their number-line into periods of the length of the value of pi? * interested *

Maybe this conversation should continue elsewhere, somewhere or other...I think it's de-railing the thread. :P It's too interesting!


Top
 Offline Profile  
 
 Post subject: Re: Translating between bases
PostPosted: May 4th, 2012, 10:02 pm 
Foundational Member
Foundational Member
User avatar

Joined: December 18th, 2010, 10:18 am
Posts: 3404
Location: At a computer.
Sorry about that. :P

_________________
Somewhere in Georgia an alien-twin of Seer's is wandering around.

Main Fantasy Project:
Portals of Prophecy -- mid-development, early-early-snippet-writing stage


Top
 Offline Profile  
 
 Post subject: Re: Translating between bases
PostPosted: May 6th, 2012, 12:06 pm 
Captain
Captain
User avatar

Joined: October 13th, 2009, 3:59 am
Posts: 3502
Location: Cork, Ireland
Ira Mordecai Mimetes wrote:
Sorry about that. :P


Sooo... are you going to talk to me about it somewhere else? * hopeful look * You can't just intrigue me like this and then leave me hanging!


Top
 Offline Profile  
 
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 12 posts ] 


Who is online

Users browsing this forum: No registered users and 12 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron