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 type | output type | Notes |
---|---|---|
Zahl | Byte Kommazahl Text Wahrheitswert Buchstabe | Numbers outside the range get mapped accordingly - - 0 => falsch; nicht 0 => wahr uses ASCII value |
Kommazahl | Zahl, Byte Text | truncated - |
Wahrheitswert | Zahl, Byte | falsch => 0; wahr => 1 |
Text | Zahl, Byte Kommazahl Buchstaben | Numerical value gets parsed Text has to be in \d+(,\d+)? format- |
Buchstabe | Zahl, Byte Text | utf8 bytes in decimal - |
Buchstaben Liste | Text | - |