Show/Hide Toolbars

Take Command / TCC Help v. 21

@CONVERT[input, output, value] :  Returns a numeric string value converted from one number base (input) to another (output). Valid bases range from 2 to 36. The value can be between 0 and 2**64-1. No error is returned if value is outside that range.




echo binary 1010101 is decimal %@convert[2,10,1010101]

binary 1010101 is decimal 85


echo decimal 20 is hex %@convert[10,16,20]

decimal 20 is hex 14


echo hexadecimal FF is octal %@convert[16,8,FF]

hexadecimal FF is octal 377


echo this year is %@convert[10,2,%_year] in binary

this year is 11111011100 in binary