Type conversion

A type conversion is the conversion from one type to another. In DDP, a type conversion looks like this:

<expression of one type> als <other type>.

For example: x als Text.

Conversion table

Only certain types can be converted to others.

input typeoutput typeNotes
ZahlByte
Kommazahl
Text
Wahrheitswert
Buchstabe
Numbers outside the range get mapped accordingly
-
-
0 => falsch; nicht 0 => wahr
uses ASCII value
KommazahlZahl, Byte
Text
truncated
-
WahrheitswertZahl, Bytefalsch => 0; wahr => 1
TextZahl, Byte
Kommazahl
Buchstaben
Numerical value gets parsed
Text has to be in \d+(,\d+)? format
-
BuchstabeZahl, Byte
Text
utf8 bytes in decimal
-
Buchstaben ListeText-