DuoTrigesimalToNum ( DTGString )
Rate this function: Average rating: 3.6 (10 votes) Discuss this Custom Function
Tim Griffith, None
None
Converts Duotrigesimal strings into numbers
Sample Input:
| DuoTrigesimalToNum ( SSST1VX ) |
|
Sample Output:
|
Description:
DuoTrigesimalToNum ( DTGString )
No dependencies
( to convert Duotrigesimal strings back to numbers use custom function NumToDuoTrigesimal ( number ) )
Created: December 26, 2010 St. Louis, MO USA
Tim Griffith Sr.
Duotrigesimal, or base 32 numbers are like Hexadecimal numbers in that after 9, numbers are represented by letters. We know we can't use all the letters of the alphabet because the index of numbers would go beyond 31 up to 35. As best I have discovered the letters 'I' 'L' and 'O' are not used because in various forms they can be mistaken for other characters. My research has also shown that the letter 'U' has been omited because of 'accidental obscenities'.
Throughout books and the internet there are numerous algorithms showing how to convert numbers to hex and hex to numbers. I am not a genius, but rather a bit clever enough to augment those formulas to add the additional letters beyong hex F, and substitute dividing or multplying 16 into 32. All in all it was quite simple.
If credit is due- then it is due to those many people who have provided hex to num formulas. Thank you all- you know who you are!
Note: If the duotrigesinal string you are converting contains the omitted letters [I,L,O,U] the error will be captured and an error message will appear instead of a result.
Note: these functions are not guaranteed
or supported by BrianDunning.com. Please contact the individual
developer with any questions or problems.
This is my Custom Function and I want to
edit it
Discuss:There are no comments yet. Be the first to post a comment about this Custom Function! Please try to keep it brief & to the point. Anyone can post:
|
Newest Custom Functions:
| 1. |
ValidateTC( MernisNo ) |
| |
(Tue, Jun 18, 6:44am) |
| 2. |
MinValue( theList ; treatAsNumeric ) |
| |
(Wed, Jun 12, 7:59am) |
| 3. |
MaxValue( theList ; treatAsNumeric ) |
| |
(Wed, Jun 12, 7:57am) |
| 4. |
LengthConvert ( Number , From , To ) |
| |
(Fri, May 31, 2:37pm) |
| 5. |
Backwards( _Field ) |
| |
(Thu, May 23, 10:49am) |
| 6. |
FilteredPortalList ( fieldObjectName ; startingPortalRow ) |
| |
(Tue, May 21, 5:33pm) |
| 7. |
ListToggle ( InList ; InValue ) |
| |
(Thu, May 16, 6:59pm) |
| 8. |
VatFormat ( vat ) |
| |
(Tue, May 14, 2:45am) |
 |
|