Re: How short can I make it
Re: How short can I make it
- Subject: Re: How short can I make it
- From: Doug McNutt <email@hidden>
- Date: Thu, 13 Oct 2011 16:47:46 -0600
At 15:04 -0700 10/13/11, Stan Cleveland wrote:
>On Oct 13, 2011, at 10:01 AM, Mark J. Reed wrote:
>
>>9 digits? Not in decimal - epoch time broke 10 digits in 2001. As I type this it's 1,318,524,834. That's 8 digits in hexadecimal. Or 6 digits in base 36 (0,1,2,3,4,5,6,7,8,9,a,b,c,d,...,z)...
>>
>Base 36? Very interesting. Do you have AS routines to share for doing conversions between decimal and base 36 and back again? Or even better, between any two bases in the range of, say, 2 to 36?
Base 36 would be not much different from Base 64 here. There is lots of code for that.
But then a simple loop doing integer divisions by 36 and using the remainder as the next digit in a result would be pretty simple unless AppleScript gets in the way.
--
--> From the U S of A, the only socialist country that refuses to admit it. <--
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden