| |
| | JS: Math: Base Conversion / Enumeration (Javascript) (Site not responding. Last check: 2007-10-31) |
 | | Most base conversion do not take into account the leading number (normally a zero) when enumerating or converting: for instance you have number such as [0 1 2 3 4 5 6 7 8 9] and the subsequent group start with 1: [10 11 12 13 14...] not with zero: [00, 01, 02, 03, 04...]. |
 | | each base is composed of lots: like the decimal system is composed of the tents, then of the hudreds, then of the thousands: this first method finds the amount of entries that are in all the lots before the lot the given number belongs to in its base. |
 | | In fact, if you want to convert between fantasy bases like say ["aa,ab,ac"] and ["xx,yyyy"] that would be like converting between base 3 (three fancy entries) and base 2 (two fancy entries) whereas the only difference is that instead of numbers you have instructed the baseConverter to handle fantasy items. |
| www.unitedscripters.com /scripts/math4.html (2815 words) |
|