|
1
|
Origin: http://wiki.tcl.tk/1067 Author: Michael A. Cleverly The other day someone on OpenACS.org asked [http://openacs.org/bboard/q-and-a-fetch-msg.tcl?msg_id=0000k2&topic_id=11&topic=OpenACS] for a Tcl proc that would convert a base-62 number into a base-10 integer. I replied with a version I'd written. Here is a slightly expanded one. convert_number employs some Salt and Sugar which I quite like. (One caveat is that base_n_to_decimal will either return an incorrect answer or generate an error for really large numbers that are > than 2147483647.)
|
Add a comment
Sign in to comment

Download
Copy to clipboard
