2.2.2) Outtype types

Outtypes are simple output types. Follows the description of all the outtypes:

Outtype Description Examples
int
integer
Signed integer -4
5
nat
natural
Unsigned integer 2345
compact Unsigned integer as compact number Ae45^
hex Unsigned integer as hex number e4f
octal Unsigned integer as octal number 234
binary Unsigned integer as binary number 110110
  1. real
  2. real(nat)
Real in scientific format
  1. precision length
  2. max nat length
.314e1
  1. freal
  2. freal(nat)
  3. freal(nat,nat)
Real in fixed format
  1. precision length
  2. max nat fraction
  3. if int part <= first nat, max second nat fraction, else truncate int part to first nat length and append exponent
freal(2)

3.14

freal(2,3)

3.142
12e5


breal Real as 0f... - floating point in binary format 0
0f0001e123
  1. intreal
  2. intreal(nat)
Real as integer
  1. normal integer format
  2. if length <= nat, normal int. format, else truncate int part to (nat-4) and append the exponent
intreal

1234567890123456

intreal(8)

1234567
1234e34


pointer Internal pointer
System dependent format
string Variable length string "Who am I?"
char One character "a"
bool
boolean
Boolean value as True/False True
False
cbool
cboolean
Boolean value as T/F T
F
nbool
nboolean
Boolean value as 1/0 1
0
user User defined format

User must suply:

  • deffunc(void *in_ptr, char **out_str)
    returns (and alocates) a string from user pointer
  • freefunc(void *ptr)
    disposes the user pointer


Back to main page.
Send comments to: Igor Sfiligoi