| · Portal |
Help
Search
Members
Calendar
|
| Welcome Guest ( Log In | Register ) | Resend Validation Email |
InvisionFree gives you all the tools to create a successful discussion community. Learn More · Register for Free | Welcome to Dozensonline. We hope you enjoy your visit. You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free. Join our community! If you're already a member please log in to your account to access all of our features: |
![]() ![]() ![]() |
| Dan |
Posted: Aug 11 2005, 05:03 AM
|
||||||||||
![]() Dozens Disciple Group: Members Posts: 1,015 Member No.: 19 Joined: 8-August 05 |
Here's a little Python program I wrote for converting numbers from one base to another, with unlimited precision. Thought you might find it useful.
Examples Convert decimal 123.456 to dozenal:
Round it to two dozenal places:
Convert Avogadro's Number to hexadecimal ("@" is used as the scientific notation symbol because "e" is a digit):
Compute 1/23 (i.e. 0.1 base 23) in dozenal to 36 significant digits
|
||||||||||
| The Mighty Dozen |
Posted: Aug 11 2005, 07:40 PM
|
![]() Administrator Group: Admin Posts: 564 Member No.: 1 Joined: 2-August 05 |
Okay Dan, I am braindead as far as computer stuff goes. So, how does one use the above program?
-------------------- Forum Administrator
Please call me "Bryan", not "Sir/Idiot/Madam/Mighty Dozen" ** The reason nature seems to test mankind With cold and stone-hard stares and unmoved mind, Is just to make him see what's plainly true: He's like an animal, nay, is one too. |
| Dan |
Posted: Aug 12 2005, 02:53 AM
|
||
![]() Dozens Disciple Group: Members Posts: 1,015 Member No.: 19 Joined: 8-August 05 |
First, you'll need to install Python and download the rational numbers module. Copy the contents of that big code box into your text editor (making sure to preserve the indentation), and save it as "baseconv.py". The program is meant to be executed from the command prompt. The syntax for it is: python baseconv.py options number_to_convert The possible options are:
|
||
| The Mighty Dozen |
Posted: Aug 12 2005, 01:29 PM
|
![]() Administrator Group: Admin Posts: 564 Member No.: 1 Joined: 2-August 05 |
Cheers, Dan. I'll give it a go when I get a spare ten minutes
-------------------- Forum Administrator
Please call me "Bryan", not "Sir/Idiot/Madam/Mighty Dozen" ** The reason nature seems to test mankind With cold and stone-hard stares and unmoved mind, Is just to make him see what's plainly true: He's like an animal, nay, is one too. |
| Twinbee |
Posted: Aug 12 2005, 04:27 PM
|
|
Casual Member Group: Members Posts: 27 Member No.: 11 Joined: 4-August 05 |
Dan, if you have time, make it into an exe and give it a GUI
|
| The Mighty Dozen |
Posted: Aug 12 2005, 04:48 PM
|
||
![]() Administrator Group: Admin Posts: 564 Member No.: 1 Joined: 2-August 05 |
...and install it for us, while you're at it -------------------- Forum Administrator
Please call me "Bryan", not "Sir/Idiot/Madam/Mighty Dozen" ** The reason nature seems to test mankind With cold and stone-hard stares and unmoved mind, Is just to make him see what's plainly true: He's like an animal, nay, is one too. |
||
| Dan |
Posted: Aug 15 2005, 03:07 AM
|
||
![]() Dozens Disciple Group: Members Posts: 1,015 Member No.: 19 Joined: 8-August 05 |
I'll put on on my website next week when I re-acquire my domain name. |
||
| finlay |
Posted: Aug 18 2005, 05:25 PM
|
|
Casual Member Group: Members Posts: 78 Member No.: 17 Joined: 6-August 05 |
It's fairly obvious why you've done it, but could you possibly implement a system whereby you could use bases higher than 36?
I'm just about to try it, anyway, and then once my sister's come off msn Sounds cool. OK it's not working. Some syntax error? Not sure if it's yours or mine. |
| Dan |
Posted: Aug 18 2005, 07:47 PM
|
||
![]() Dozens Disciple Group: Members Posts: 1,015 Member No.: 19 Joined: 8-August 05 |
What error are you getting? |
||
| finlay |
Posted: Aug 20 2005, 05:34 PM
|
||
|
Casual Member Group: Members Posts: 78 Member No.: 17 Joined: 6-August 05 |
Apparently it's neither yours nor mine, unless I'm somehow mistaken.... :\ |
||
| Dan |
Posted: Aug 20 2005, 06:18 PM
|
![]() Dozens Disciple Group: Members Posts: 1,015 Member No.: 19 Joined: 8-August 05 |
Try installing the latest version of Python.
|
| Dan |
Posted: Jul 19 2007, 03:23 AM
|
![]() Dozens Disciple Group: Members Posts: 1,015 Member No.: 19 Joined: 8-August 05 |
I guess I should explain my use of @ as the separator between the mantissa and exponent.
The usual notation uses "e", but that's a digit in bases fifteen and higher, so I couldn't use it. Or any letter (or digit, of course), because it would be a digit in some base. I also didn't want to use any of the symbols !"#%&\'()*+,-./:;<=>?[\]^_{|}~ because each of them has a meaning in C (which, along with its descendants C++ and Java, are the most popular programming languages today). So, that left only 3 characters left on my keyboard: $, @, and `. But "$" is very commonly used with digits, and ` could be confused with the apostrophe, so the only practical choice was @. Coincidentally, it has a slight resemblance to a lowercase "e". |
| Ged |
Posted: Jul 22 2007, 03:16 PM
|
![]() Casual Member Group: Members Posts: 65 Member No.: 16 Joined: 6-August 05 |
I had the same problem with Python.
However I have written a base conversion programme in GUI using C++, but it only works on Windows So if anybody is interested in it let me know. -------------------- Dozenal numbers:
Member of : DSGB http://www.dozenalsociety.org.uk/ DSA http://www.dozenal.org/ |
| Dan |
Posted: Jul 23 2007, 12:20 AM
|
||||
![]() Dozens Disciple Group: Members Posts: 1,015 Member No.: 19 Joined: 8-August 05 |
|
||||
| JDozen |
Posted: Aug 23 2007, 12:23 PM
|
![]() Casual Member Group: Members Posts: 82 Member No.: 113 Joined: 1-June 07 |
There should be a fairly simple way of base conversation for EXCEL. I'll bring it in when I'll find it. I think more folks are familiar with EXCEL than with python
|
| Dan |
Posted: Aug 24 2007, 12:59 AM
|
||
![]() Dozens Disciple Group: Members Posts: 1,015 Member No.: 19 Joined: 8-August 05 |
I don't have Excel on my home PC, but OpenOffice has BASE and DECIMAL functions. But they only work for integers. |
||
| Dan |
Posted: May 5 2012, 02:51 PM
|
||
![]() Dozens Disciple Group: Members Posts: 1,015 Member No.: 19 Joined: 8-August 05 |
A new version of baseconv which is 3.x compatible, and uses the new fractions.Fraction class:
|
||
| Ged |
Posted: Aug 4 2012, 08:29 PM
|
![]() Casual Member Group: Members Posts: 65 Member No.: 16 Joined: 6-August 05 |
I found a thread that was already on the subject
I have a GUI Base Converter written in Java if anyone is interested. I would like one for my Mobile though But what I thought would be interesting is if anyone knows of any short cut tricks to convert Decimal to Dozenal and vice versa -------------------- Dozenal numbers:
Member of : DSGB http://www.dozenalsociety.org.uk/ DSA http://www.dozenal.org/ |
| Treisaran |
Posted: Aug 4 2012, 09:09 PM
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() Dozens Disciple Group: Members Posts: 855 Member No.: 630 Joined: 14-February 12 |
My classification of base conversion difficulty levels puts conversion between decimal and dozenal at the medium-hard level, being bases that are neither exponent relations (easiest) nor divisor relations (medium-easy), yet not coprime (hardest). Consequently, there are anchor points that can facilitate the conversion: decimal and dozenal meet at every decimal 60 = dozenal *50. Remembering as many multiples of each base as possible will make mental conversion easier. The decimal numbers 12, 144 and 1728 should be memorised, and the dozenal numbers *X, *84 and *6E4, which are powers of one base viewed from the other. Indeed, it's useful to see how the multiples of each base look in the view of the other. The following table lists the dozenal multiples (1, 2, 3 up to *10 in the first column, then *10, *20, *30 up to *100 in the next column, then the grosses, then the grands) in their decimal forms:
And this table does the same the other way round (decimal multiples in their dozenal forms):
The more you remember of these tables, the more you'll be able to convert easily in your head. Apropos, I've had to do a mental conversion just this day: I was wondering how the number 5772 (the Anno Mundi count) was in dozenal, so I first used 5760 = 24↑2·10 = *20↑2·X = *400·X = *3400, then added a dozen to give the answer *3410. -------------------- Conventions as of 18 Apr 11E9:
Dozenal numbers are unmarked, decimal numbers are prefixed with 'đ'. The first three dozenal powers in everyday counting are 'dozen', 'gross' and 'grand'; SDN is used starting from the sixth power ('hexua' and so forth). |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| dgoodmaniii |
Posted: Aug 4 2012, 10:38 PM
|
||
|
Dozens Disciple Group: Admin Posts: 1,482 Member No.: 554 Joined: 21-May 09 |
Assuming that by "mobile" you mean "mobile phone," what type of mobile phone do you have? It's probably quite trivial to recompile your Java converter for an Android phone. With an iOS phone, though, you'll probably need to rewrite it. -------------------- All numbers in my posts are dozenal unless stated otherwise.
For ten, I use :A or X; for elv, I use :B or E. For the digital/fractional/radix point, I use the Humphrey point, ";". TGM for the win! Dozenal Adventures |
||
| Ged |
Posted: Aug 4 2012, 10:42 PM
|
![]() Casual Member Group: Members Posts: 65 Member No.: 16 Joined: 6-August 05 |
I have a Nokia 5230 mobile phone.
Is their a web site that a mobile phone could use for conversions? -------------------- Dozenal numbers:
Member of : DSGB http://www.dozenalsociety.org.uk/ DSA http://www.dozenal.org/ |
| dgoodmaniii |
Posted: Aug 6 2012, 12:52 AM
|
||
|
Dozens Disciple Group: Admin Posts: 1,482 Member No.: 554 Joined: 21-May 09 |
Googling tells me that this phone runs Symbian. Since Nokia appears to be more or less killing Symbian in order to further their alliance with Microsoft, and since I don't know of any Java runtime for Symbian, you're probably out of luck unless you learn how to program for Symbian. But I didn't search the results very deeply; it may be that there's a runtime already laying around somewhere. The only one I found had been canceled. -------------------- All numbers in my posts are dozenal unless stated otherwise.
For ten, I use :A or X; for elv, I use :B or E. For the digital/fractional/radix point, I use the Humphrey point, ";". TGM for the win! Dozenal Adventures |
||
| dgoodmaniii |
Posted: Aug 6 2012, 12:55 AM
|
||
|
Dozens Disciple Group: Admin Posts: 1,482 Member No.: 554 Joined: 21-May 09 |
Many. My favorite is the world's first (allegedly), though it has the downside that it uses the "Bell" characters for ten and elv, and it can't handle exponential notation. But it's quite fast and easy to use, and it works both ways. -------------------- All numbers in my posts are dozenal unless stated otherwise.
For ten, I use :A or X; for elv, I use :B or E. For the digital/fractional/radix point, I use the Humphrey point, ";". TGM for the win! Dozenal Adventures |
||
| Ged |
Posted: Aug 6 2012, 08:56 AM
|
![]() Casual Member Group: Members Posts: 65 Member No.: 16 Joined: 6-August 05 |
I tried the World First but it didn't work on my mobile phone.
However I found this one Base Converter and it works OK on the mobile phone. -------------------- Dozenal numbers:
Member of : DSGB http://www.dozenalsociety.org.uk/ DSA http://www.dozenal.org/ |
| m1n1f1g |
Posted: Aug 6 2012, 10:17 PM
|
![]() Dozens Disciple Group: Members Posts: 664 Member No.: 591 Joined: 20-February 11 |
You could try my converter, which handles any base with any arbitrary digit set. It also handles recurring digital fractions smoothly. However, I've never tested it beyond Chrome and Firefox (maybe Opera, I can't remember).
-------------------- A few little conventions:
- Dozenal integers suffixed with prime (′). This is the uncial point. - Decimal integers suffixed with middle dot (·). This is the decimal point. You may see me use * prefix for messages before 11Ɛ7-03-1X, and a whole range of similar radix points. I will often use X and Ɛ for Sometimes, I will imply that an integer is in dozenal, so I won't add any marks to it. You should be able to tell that "10 = 22 * 3" is in dozenal. |
![]() |
![]() ![]() ![]() |