![]() ![]() |
|||||
|
|
DOWNLOAD To view this script, click the button below. Your browser should show you the script in your browser window. Copy and paste that script into ToolBook. |
|
|||
| Syntax |
baseConverter(<value>,<sourceBase>,<destinationBase>) |
||||
| Parameters |
<value> The number you are trying to convert. This number can be any BASE 2 - 36 number. If it is not base 10 you will likely need to ensure you pass the value as a string. In other words, ensure you Quote the value. <sourceBase> A number from 2 to 36 representing what base the number is currently in. <destinationBase> A number from 2 to 36 representing what base the number should be converted to. |
||||
| Returns |
Returns a string value
representing your number after being converted to the desired base. |
||||
| Sample |
hexVal = baseConverter("01010110",2,16) quadVal = baseConverter(1999,10,4) |
||||