# Fun facts with other number bases.

1/5 = .2
1/2 = .5
...

Big deal. Do it in base 5:
1/5 = 1/10 (base 5) = .1 (base 5)
1/2 = 1/2 (base 5) = .222222... (base 5)

or binary (base 2):
1/5 = 1/101 (binary) = .001100110011... (binary)
1/2 = 1/10 (binary) = .1 (binary)

Interesting?

It only terminates in base 10 because 5 and 2 are factors of 10. Try 1/3 in base 9:
1/3 = 1/3 (base 9) = .3

Perhaps 3/7 in base 21 will confuse you:
3/7 = 3/7 (base 21) = .9

As long as the denominator is a factor of the base, your decimal will terminate.

Posted on Mar 23, 2006, 9:01 PM

 Response Title Author and Date *Yes,a very interesting point! 2 on Mar 23 And for that reason Mac on Mar 24 * Really? Interesting! I think this calls for some research! rpgfan3233 on Mar 24 *Wikipedia seemed 2 have the most NFo on the duodecimal system. It's not that interesting. rpgfan3233 on Mar 24 interesting. Michael Calkins on Mar 24 Instead of using A-F for 10-16. . . rpgfan3233 on Mar 24 *Zeta , I don`t know how Z became our last letter roy on Mar 24 *am used to A-F. You don't want to make keyboards incompatible. Michael Calkins on Mar 24 *I'm used to A-F too but think of the road signs like speed limit signs in kilometres. . . rpgfan3233 on Mar 24 * Wouldn't epsilon have been ten and tau eleven? 'lipse on Mar 24 Was it actually going to be pronounced "epsilon"? 'lipse on Mar 24 * Could be - forgot Mac on Mar 24 My idea is more like base 24. 2 on Mar 24 what's the big deal with divisibility, anyway? Michael Calkins on Mar 24 It helps Mac on Mar 24 How to lose 10 pounds fast... Pete on Mar 24 When were you a fan ,the year that USA beat England(lol) roy on Mar 24 especially since the world cup is only every 4 years Michael Calkins on Mar 25 Obviously I support England but Brazil are the greatest roy on Mar 25 Divisibility is cool. 2 on Mar 24 *terminating or not, they slow down your program. avoid if possible Michael Calkins on Mar 24

Newbies usually go to www.qbasic.com and click on The QBasic Forum
Forum regulars have their own ways, which include The QBasic Community Forums