baseConvert()

作者: Holle 最近更新时间: 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)

关于函数的参数和返回值, 请参阅其源码或 此文档.

备注

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

关于此函数(集)的更新细节和注意事项, 请参见 AutoHotkey 论坛: http://www.autohotkey.com/forum/viewtopic.php?t=56135

许可

不存在

示例

; #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")