DuoTrigesimalToNum ( DTGString )
Converts Duotrigesimal strings into numbers
Average rating: 4.0 (55 votes) Log in to vote
Tim Griffith - Show more from this author |
Function definition: (Copy & paste into FileMaker's Edit Custom Function window)
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.
Comments
Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.