baseConvert()

Author: Holle Last Modified: 20100325


Number System Converter is a tool to convert any number systems.
For example, you would convert a number from decimal to hexadecimal, or from binary to base20.
It is possible to convert ANY number system, but there is a little limitation:
number systems greater than base35 need more letters than we have at disposal.
For any number greater than base35 ist needed to use the value in parenthesis.

baseConvert(value, from, to)

For the functions's parameters and return value, please see it's source code or the document.

Remarks

The function lacks an external documentation, so I added a simple one. Look in source file for information how to use.

This function is from an application script extracted, which converts between different bases. The function is renamed by me from convert() to baseConvert(). Look in discussion thread for script as an application form with gui.

In German forum, I got the license to do everything I want with his script:

o http://de.autohotkey.com/forum/post-52777.html#52777

For update's details and remarks related to the functions, please see the AutoHotkey Forum: http://www.autohotkey.com/forum/viewtopic.php?t=56135

License

nonexistent

Example

; #Include baseConvert.ahk
#NoEnv
SendMode Input
SetWorkingDir %A_ScriptDir%

MsgBox % baseConvert("123456","dec","hex")
InputBox, x, baseConvert, Type a decimal to convert to base45,,,,,,,, 10
MsgBox % baseConvert(x,"decimal","base45")