Tcl command "conv"

Convert various formats


Index:


Input types

ITeformat
case insensitive set
  • "left"
  • "right"
    default
  • "center"


Output types


Commands

conv expand indata length [options]
Input:
indata
string

length
natural

length of the output string
if shorter that indata, copy input to output

"-format" format
ITeformat

expand left, right(default) or center

"-fillchar" fillchar
char

fill with fillchar instead of spaces

Output:
string

C function:
fexpand

expand string to user defined width

conv nat2hex indata
Input:
indata
natural

Output:
hex

C function:
fnat2hex

natural to hex convert

conv nat2octal indata
Input:
indata
natural

Output:
octal

C function:
fnat2octal

natural to octal convert

conv nat2binary indata
Input:
indata
natural

Output:
binary

C function:
fnat2binary

natural to binary convert

conv nat2compact indata
Input:
indata
natural

Output:
compact

C function:
fnat2compact

natural to compact convert

conv hex2nat indata
Input:
indata
hex

Output:
natural

C function:
fhex2nat

hex to natural convert

conv binary2nat indata
Input:
indata
binary

Output:
natural

C function:
fbinary2nat

binary to natural convert

conv octal2nat indata
Input:
indata
octal

Output:
natural

C function:
foctal2nat

octal to natural convert

conv compact2nat indata
Input:
indata
compact

Output:
natural

C function:
fcompact2nat

compact to natural convert

conv bool2bool indata
Input:
indata
boolean

Output:
boolean

C function:
fbool2bool

generic boot to bool convert

conv bool2nbool indata
Input:
indata
boolean

Output:
numeric boolean

C function:
fbool2nbool

generic boot to nbool convert

conv bool2cbool indata
Input:
indata
boolean

Output:
char boolean

C function:
fbool2cbool

generic boot to cbool convert

conv real2real indata [options]
Input:
indata
real

"-maxfract" maxfract
natural

Output:
string

C function:
freal2real

generic real to real convert

conv real2freal indata [options]
Input:
indata
real

"-maxint" maxint
natural

"-maxfract" maxfract
natural

Output:
string

C function:
freal2freal

generic real to freal convert

conv real2breal indata
Input:
indata
real

Output:
breal

C function:
freal2breal

generic real to breal convert


Generated Fri 21. Mar 1997 17:13:18 from a tl file.
Do not modify by hand!