Thanks. There was a python snippet I found on wikipedia earlier. Maybe I'll
knock something together in the next few days when I get a little more free
time.
On Sun, Nov 16, 2008 at 2:27 PM, Pablo Vera <[EMAIL PROTECTED]> wrote:
> Here is a VB6 code to convert to and from base36, it should work a
Here is a VB6 code to convert to and from base36, it should work almost
the same in Gambas:
' Support functions
' Get a base36 digit
Private Function D36(ByVal N As Integer) As String
D36 = Chr$(N + IIf(N <= 9, 48, 55))
End Function
' base36 Logarithm
Private Function Log36(ByVal X As Double
A cursory look through the docs didn't turn up anything... Is there a
function to convert base, say base 10 to base 36? Or base 16 to base 36. I
want to get to base 36 from either base10 or base16.
It shouldn't be too difficult to hack something together, but was wondering
if I'm overlooking somet