specific functions for number conversion

May 20, 2009
293
5
57
ITALY
I do not know if this must be considered an addition for the wish list, or if the feature is already available and I did not see it.
I would like to see some functions such as %@hex, and so on, to convert numbers. I saw that there is the generic %@convert, but I believe that some more specific ones might be better.
I know that I can write an alias, but for example I would have to know in advance in which base the number is written. For example, I would like to be able to use a function such as %@ToBinary[48] and %@ToBinary[0xF2].
Also, when I convert a number, for example to binary, I would like to be able to see additional left padding zeros.
Is it possible?

Thank You very much again and regards

Rodolfo Giovanninetti
 
May 20, 2009
293
5
57
ITALY
Thank You very much! Your examples work and I am experimenting with them.

Thank You again and regards

Rodolfo Giovanninetti
 
Similar threads
Thread starter Title Forum Replies Date
R FUNCTION to count NUMBER of files matching a pattern and specific length/not length Support 4
R How to? Dir specific file search patterns with spaces in the pathnames? Support 6
R How to? Find a specific file in subfolders Support 11
p.f.moore How to? User specific TCSTART (etc) files Support 15
C Registry keys? (not JP specific) Support 0
O Make command history tab-specific Support 2
gschizas pdir crashes horribly in one specific folder Support 5
nikbackm TCC with specific @inifile for new tabs Support 3
S Version-specific icons Support 1
A Problem with functions @int @decimal and identifying Powershell as a shell. Support 12
Joe Caverly "Functions" in cmd.exe batch files Support 6
vefatica Library functions and line continuations? Support 4
Charles Dye Documentation Help Nits Forever: Checksum functions Support 0
Joe Caverly SETLOCAL removes Aliases and Functions Support 3
Joe Caverly @NAME supports library functions Support 2
Charles Dye Functions which no-one has ever tried to use.... Support 5
vefatica WHICH and @functions Support 2
vefatica Two @FUNCTIONs/aliases with the same name Support 4
M Keywords for commands, functions, internal variables Support 3
C Documentation near or fully obsolete functions Support 7
Charles Dye Optional F parm in checksum functions Support 0
C coding functions and subroutines Support 9
rps Functions @year[date] @isowyear[date] help Support 7
mikea How to? TCC and XMLnodes/XMLxpath functions Support 0
Dan Glynhampton Are these two functions the same? Support 2
M How to? Logic in functions... Support 5
A WAD function return values with parentheses prevent evaluation of additional functions Support 31
M "History" command not giving me what I want when executed by @Exec... functions... Support 6
Charles Dye Web help on functions Support 2
samintz Help examples for the @ISxxx functions Support 3
C Unsuppressable errors from XML functions Support 5
nikbackm Checksum functions Support 4
J TCC Out of memory with aliases and functions Support 5
Peter Bratton Disappearing functions Support 1
A I dont see anything in the alias/functions/batchvariables tabs in IDE Support 13
dcantor Comments and suggestions on functions for binary buffers Support 4
vefatica Windows 10 version number? Support 6
T FFind - can we display n number of lines after the find? Support 2
H DOS CMD Sort+Add Sequence+Remove Sequence number Support 12
Roedy WAD Version number Support 1
C How to? date1 - date2 = number of days Support 10
Alexander WAD The number of files and dirs are multiplied when using multiple wildcards Support 6
nikbackm FUNCTION with variable number of arguments Support 17
C Does removing a registered TCMD lower the number registrations used? Support 5
C How to? KEYSTACK's /W number for 5 minutes Support 2
A How to? Filter a list by numeric number within filename Support 28
M How to? A very simple question re. the current line number in a batch file... Support 2

Similar threads