Octal system (base 8)

Started by Vawmataw, September 24, 2012, 04:23:51 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Vawmataw

How to convert a number in base 10 to a number in base 8?
Fmawn Ta 'Rrta - News IN NA'VI ONLY (Discord)
Traducteur francophone de Kelutral.org, dict-navi et Reykunyu

Tìtstewan

#1
From Wikipedia: :)

For example, to convert 12510 to octal:

   125 / 82 = 1
   125 − 82 × 1 = 61
   61 / 81 = 7
   61 − 81 × 7 = 5
   5 / 80 = 5

Therefore, 12510 = 1758.

Another example:

   900 / 83 = 1
   900 − 83 × 1 = 388
   388 / 82 = 6
   388 − 82 × 6 = 4
   4 / 81 = 0
   4 − 81 × 0 = 4
   4 / 80 = 4

Therefore, 90010 = 16048.

-| Na'vi Vocab + Audio | Na'viteri as one HTML file | FAQ | Useful Links for Beginners |-
-| Kem si fu kem rä'ä si, ke lu tìfmi. |-

Vawmataw

Quote from: Tìtstewan on September 24, 2012, 04:34:57 PM
From Wikipedia: :)

For example, to convert 12510 to octal:

    125 / 82 = 1
    125 − 82 × 1 = 61
    61 / 81 = 7
    61 − 81 × 7 = 5
    5 / 80 = 5

Therefore, 12510 = 1758.

Another example:

    900 / 83 = 1
    900 − 83 × 1 = 388
    388 / 82 = 6
    388 − 82 × 6 = 4
    4 / 81 = 0
    4 − 81 × 0 = 4
    4 / 80 = 4

Therefore, 90010 = 16048.
You don't help me, because I searched that in Wikipedia, and it's not clear.
Fmawn Ta 'Rrta - News IN NA'VI ONLY (Discord)
Traducteur francophone de Kelutral.org, dict-navi et Reykunyu

Tìtstewan

#3
Sorry I would write an another method:
I was too slow ...
Another exampel:
12210
   122 : 8 = 15 R - 2 at 3rd
    15 : 8 =  1 R - 7 at 2nd
     1 : 8 =  0 R - 1 at 1st

1728

You have to divide with 8.

-| Na'vi Vocab + Audio | Na'viteri as one HTML file | FAQ | Useful Links for Beginners |-
-| Kem si fu kem rä'ä si, ke lu tìfmi. |-

Blue Elf

#4
The first example is a little confusing, as there's something missing:

125 / 8^2 = 1
   125 − 8^2 × 1 = 61
   61 / 8^1 = 7
   61 − 8^1 × 7 = 5
   5 / 8^0 = 5

Power mark is important. By words:
- find the highest power of 8 smaller than number you are converting (64 = 8^2 in our case)
- perform division and remember remainder: 125 / 64 = 1, remainder = 61
- repeat these steps, while decreasing number in red, until you get remainder 0:
61 / 8^1 = 61 / 8 = 7, remainder = 5
5 / 8^0 = 5 / 1 = 5, remainder = 0
Now write all result in sequence:
125(10) = 175(8 )
Oe lu skxawng skxakep. Slä oe nerume mi.
"Oe tasyätxaw ulte koren za'u oehu" (Limonádový Joe)


Tirea Aean

Here's what I do

First, I ask myself, Is the number greater than:

4096? (zazam)
512? (vozam)
64? (zam)
8? (vol)

For example we wanna translate from English the number 59 (fifty-nine) into Na'vi octal.

59 is greater than 8 but less than 64. Therefore it's less than zam. So it's gonna be {something}vo{something}.

Next, I ask how many eights at the most are there evenly in 59?

Well, 64 is eight eights. And seven eights is 56. 56 is only a few away from 59, the number we want. It's only 3 away. So it's "seven eights and three". This is much easier to translate into Na'vi: kivopey.

Hopefully this has helped as a simple way of thinking about it / doing it.

Sent from my GT-P7510 using Tapatalk