Math Is Fun Forum

  Discussion about math, puzzles, games and fun.   Useful symbols: ÷ × ½ √ ∞ ≠ ≤ ≥ ≈ ⇒ ± ∈ Δ θ ∴ ∑ ∫ • π ƒ -¹ ² ³ °

You are not logged in.

#1 2007-01-11 18:10:22

MathsIsFun
Administrator
Registered: 2005-01-21
Posts: 7,713

Base Conversion

I have extended my Binary/Decimal/Hexadecimal Converter to make a more general Base Conversion Tool (prompted by the 0.999... = 1 conversation running in another thread)

I have included the most-used bases, and also the rather fun "26 Letters" one.

PLEASE check it over and report any errors or strange behavior !


"The physicists defer only to mathematicians, and the mathematicians defer only to God ..."  - Leon M. Lederman

Offline

#2 2007-01-11 23:45:07

mathsyperson
Moderator
Registered: 2005-06-22
Posts: 4,900

Re: Base Conversion

Ooh, very fun. I haven't found any bugs in it yet, and it's all very easy to use. I got a bit confused that 0 in Dec goes to Z in Letters, but then I realised that that actually made sense.
Speaking of the letters base,

9 2068 229455 228096070 1637421


Why did the vector cross the road?
It wanted to be normal.

Offline

#3 2007-01-12 00:01:56

MathsIsFun
Administrator
Registered: 2005-01-21
Posts: 7,713

Re: Base Conversion

Well Done! You can!


"The physicists defer only to mathematicians, and the mathematicians defer only to God ..."  - Leon M. Lederman

Offline

#4 2007-01-12 07:56:09

Devantè
Real Member
Registered: 2006-07-14
Posts: 6,400

Re: Base Conversion

mathsyperson wrote:

9 2068 229455 228096070 1637421

407952, 509 2068 9.

Offline

#5 2007-01-12 14:45:32

John E. Franklin
Member
Registered: 2005-08-29
Posts: 3,588

Re: Base Conversion

Awesome, I'll take a look.
Aside from that, on TI Calculator page, the word "processor" is mispelled.


igloo myrtilles fourmis

Offline

#6 2007-01-12 15:18:52

John E. Franklin
Member
Registered: 2005-08-29
Posts: 3,588

Re: Base Conversion

Hey, my favorite one so far in base-26 is 0.04, which is Z.AAAAAAAAAAAA
So 1/25th is analogous to 1/9th in base-10, in that they both repeat 0.11111111111,
or Z.AAAAAAAAAAAA
This is so cool, man.
Ya gotta love it.


igloo myrtilles fourmis

Offline

#7 2007-01-12 15:24:25

John E. Franklin
Member
Registered: 2005-08-29
Posts: 3,588

Re: Base Conversion

One tiny bug, if you type "B.YYYYY" all is fine, but if you hold and repeat the YYY's for a ways, the point YYYYYYYYY part goes to zero, and the B is left at a value of 2, instead of 3.
All note 0.YYYYYYYYYYY versus .YYYYYYYYYYYYYYYYYYYY, which disappears.
Love this thing though, nice work, master MIF.


igloo myrtilles fourmis

Offline

#8 2007-01-12 15:56:59

John E. Franklin
Member
Registered: 2005-08-29
Posts: 3,588

Re: Base Conversion

Note that 1000 is ALL
4646 is FVR
and 2222 is AFVR
Just havin' fun with this...
_______
oh, I'm back....
I typed in 2007 and it said BYE!!!
(smile)
...I'm back again...
and SLING is interesting in decimal, as is AUNT.
I'll have to try the base-20 next...
....Back again...
Oh, the hex drum set is really nice sounding!
Excellent idea, math and rhythm.
A sort of multiplexer to pick hi-hat tom bass etc.

Last edited by John E. Franklin (2007-01-12 16:58:19)


igloo myrtilles fourmis

Offline

#9 2007-01-12 16:08:51

MathsIsFun
Administrator
Registered: 2005-01-21
Posts: 7,713

Re: Base Conversion

Thanks John, fixed it!


"The physicists defer only to mathematicians, and the mathematicians defer only to God ..."  - Leon M. Lederman

Offline

#10 2007-01-12 19:03:03

justlookingforthemoment
Moderator
Registered: 2005-05-26
Posts: 2,161

Re: Base Conversion

I can delete/add/change text where it originally says 'A=1, B=2, C=3, ... X=24, Y=25, and Z=0' in green underneath the two conversion boxes.

Is it meant to be like this (for a reason)? My changes don't stay permanently of course but I was just wondering.

Well, apart from that, this is cool. I like how the conversion is live.

Offline

#11 2007-01-12 19:24:55

MathsIsFun
Administrator
Registered: 2005-01-21
Posts: 7,713

Re: Base Conversion

LOL! That is something I completely overlooked ... will protect it from editing.


"The physicists defer only to mathematicians, and the mathematicians defer only to God ..."  - Leon M. Lederman

Offline

#12 2007-01-17 20:10:57

John E. Franklin
Member
Registered: 2005-08-29
Posts: 3,588

Re: Base Conversion

In case you missed by post about the repeating Y problem.
Here is the point where it is right in base 26:
A.YYYYYYYYYY    which equals  1.99999
Here is where is fails:
A.YYYYYYYYYYY   which is says incorrectly equals just 1, but should say 1.99999 or 2.
When it fails, it is off by one, which is not a good thing.


igloo myrtilles fourmis

Offline

#13 2007-01-17 22:22:21

MathsIsFun
Administrator
Registered: 2005-01-21
Posts: 7,713

Re: Base Conversion

Eeek ... thanks for that. I will try to discover why.


"The physicists defer only to mathematicians, and the mathematicians defer only to God ..."  - Leon M. Lederman

Offline

#14 2007-01-18 11:20:36

MathsIsFun
Administrator
Registered: 2005-01-21
Posts: 7,713

Re: Base Conversion

OK, I posted a new version, that handles fractional components rounding to 1.

Thank you so much for pointing this out John. It works for me now, but maybe you could give it a test. Software is only as good as the tests it has passed!


"The physicists defer only to mathematicians, and the mathematicians defer only to God ..."  - Leon M. Lederman

Offline

#15 2010-01-23 15:04:04

John E. Franklin
Member
Registered: 2005-08-29
Posts: 3,588

Re: Base Conversion

I was just teaching my Mom about counting in base-3, base-9, base-15, and base-10 with this:
Counting in different bases
Thanks MathIsFun!!  I was also finding non-prime numbers in base-3 today by multiplying in base-3 by
hand, which is fun to do!


igloo myrtilles fourmis

Offline

#16 2010-01-23 15:10:05

MathsIsFun
Administrator
Registered: 2005-01-21
Posts: 7,713

Re: Base Conversion

Thanks John.

Maybe I should give that little app a page on its own.


"The physicists defer only to mathematicians, and the mathematicians defer only to God ..."  - Leon M. Lederman

Offline

#17 2010-01-24 04:59:01

John E. Franklin
Member
Registered: 2005-08-29
Posts: 3,588

Re: Base Conversion

Not sure, how are most pages found my a new user to the site?
There are probably 2 or more ways to some pages with the search or index?
What if someone wanted to skim every single page
from the site, could there be a "book-order" they could
utilize?  And keep clicking "next page" ?

Last edited by John E. Franklin (2010-01-24 05:03:38)


igloo myrtilles fourmis

Offline

Board footer

Powered by FluxBB