Typecast/de: what changed
Revision 0 to 1. Removed lines have a minus sign; added lines have a plus sign.
Title: Typecast/de
| Old | New | Line | |
|---|---|---|---|
| 1 | + | Die Typumwandlung von Werten aus Variablen mit niederwertigen Datentyp in Variablen mit höherwertigen Datentyp geht automatisch (implizit). Wird ein Wert von einer Variable von einem höherwertigen Datentyp in eine Variable mit einem niederwertigen Datentyp umgewandelt (gecastet) und ist in der Variable vom höherwertigen Datentyp ein Wert, der nicht in die Variable vom Zieldatentyp passt, dann stehen nach dem Casten in der Variable vom Zieldatentyp falsche Werte.\ | |
| 2 | + | ||
| 3 | + | =Typumwandlung=\ | |
| 4 | + | ||
| 5 | + | von Datentypgruppe | |
| 6 | + | ||
| 7 | + | nach Datentypgruppe | |
| 8 | + | ||
| 9 | + | Art der Typumwandlung | |
| 10 | + | ||
| 11 | + | Funktion | |
| 12 | + | ||
| 13 | + | Integer | |
| 14 | + | ||
| 15 | + | Real | |
| 16 | + | ||
| 17 | + | implizit | |
| 18 | + | ||
| 19 | + | keine | |
| 20 | + | ||
| 21 | + | Real | |
| 22 | + | ||
| 23 | + | Integer | |
| 24 | + | ||
| 25 | + | explicit\ | |
| 26 | + | Nachkommastellen abschneiden\ | |
| 27 | + | kaufm. Runden | |
| 28 | + | ||
| 29 | + | Trunc\ | |
| 30 | + | Round | |
| 31 | + | ||
| 32 | + | Integer | |
| 33 | + | ||
| 34 | + | String | |
| 35 | + | ||
| 36 | + | explicit | |
| 37 | + | ||
| 38 | + | IntToStr | |
| 39 | + | ||
| 40 | + | Real | |
| 41 | + | ||
| 42 | + | String | |
| 43 | + | ||
| 44 | + | explicit | |
| 45 | + | ||
| 46 | + | FloatToStr\ | |
| 47 | + | FloatToStrF | |
| 48 | + | ||
| 49 | + | String | |
| 50 | + | ||
| 51 | + | Integer | |
| 52 | + | ||
| 53 | + | explicit | |
| 54 | + | ||
| 55 | + | StrToInt | |
| 56 | + | ||
| 57 | + | String | |
| 58 | + | ||
| 59 | + | Real | |
| 60 | + | ||
| 61 | + | explicit | |
| 62 | + | ||
| 63 | + | StrToFloat | |
| 64 | + | ||
| 65 | + | String | |
| 66 | + | ||
| 67 | + | Char | |
| 68 | + | ||
| 69 | + | explicit\ | |
| 70 | + | Zugriff über Index | |
| 71 | + | ||
| 72 | + | keine\ | |
| 73 | + | keine | |
| 74 | + | ||
| 75 | + | Char | |
| 76 | + | ||
| 77 | + | String | |
| 78 | + | ||
| 79 | + | implizit | |
| 80 | + | ||
| 81 | + | keine | |
| 82 | + | ||
| 83 | + | von Datentyp | |
| 84 | + | ||
| 85 | + | nach Datentyp | |
| 86 | + | ||
| 87 | + | Art der Typumwandlung | |
| 88 | + | ||
| 89 | + | Funktion | |
| 90 | + | ||
| 91 | + | QWord | |
| 92 | + | ||
| 93 | + | Byte | |
| 94 | + | ||
| 95 | + | explicit | |
| 96 | + | ||
| 97 | + | Byte(QWord) | |
| 98 | + | ||
| 99 | + | QWord | |
| 100 | + | ||
| 101 | + | Word | |
| 102 | + | ||
| 103 | + | explicit | |
| 104 | + | ||
| 105 | + | Word(QWord) | |
| 106 | + | ||
| 107 | + | QWord | |
| 108 | + | ||
| 109 | + | Cardinal | |
| 110 | + | ||
| 111 | + | explicit | |
| 112 | + | ||
| 113 | + | Cardinal(QWord) | |
| 114 | + | ||
| 115 | + | QWord | |
| 116 | + | ||
| 117 | + | Longword | |
| 118 | + | ||
| 119 | + | explicit | |
| 120 | + | ||
| 121 | + | Longword(QWord) | |
| 122 | + | ||
| 123 | + | Longword | |
| 124 | + | ||
| 125 | + | Byte | |
| 126 | + | ||
| 127 | + | explicit | |
| 128 | + | ||
| 129 | + | Byte(Longword) | |
| 130 | + | ||
| 131 | + | Longword | |
| 132 | + | ||
| 133 | + | Word | |
| 134 | + | ||
| 135 | + | explicit | |
| 136 | + | ||
| 137 | + | Word(Longword) | |
| 138 | + | ||
| 139 | + | Longword | |
| 140 | + | ||
| 141 | + | Cardinal | |
| 142 | + | ||
| 143 | + | implicit (einfache Wertzuweisung) | |
| 144 | + | ||
| 145 | + | usw. | |
| 146 | + | ||
| 147 | + | Int64 | |
| 148 | + | ||
| 149 | + | Byte | |
| 150 | + | ||
| 151 | + | explicit | |
| 152 | + | ||
| 153 | + | Byte(Int64) | |
| 154 | + | ||
| 155 | + | usw. | |
| 156 | + | ||
| 157 | + | Int64 | |
| 158 | + | ||
| 159 | + | Shortint | |
| 160 | + | ||
| 161 | + | explicit | |
| 162 | + | ||
| 163 | + | Shortint(Int64) | |
| 164 | + | ||
| 165 | + | usw. | |
| 166 | + | ||
| 167 | + | Comp | |
| 168 | + | ||
| 169 | + | Byte | |
| 170 | + | ||
| 171 | + | explicit | |
| 172 | + | ||
| 173 | + | Byte(Comp) | |
| 174 | + | ||
| 175 | + | usw. | |
| 176 | + | ||
| 177 | + | Comp | |
| 178 | + | ||
| 179 | + | Shortint | |
| 180 | + | ||
| 181 | + | explicit | |
| 182 | + | ||
| 183 | + | Shortint(Comp) | |
| 184 | + | ||
| 185 | + | usw. | |
| 186 | + | ||
| 187 | + | Comp | |
| 188 | + | ||
| 189 | + | Real | |
| 190 | + | ||
| 191 | + | explicit | |
| 192 | + | ||
| 193 | + | Real(Comp) | |
| 194 | + | ||
| 195 | + | usw. | |
| 196 | + | ||
| 197 | + | --Olaf 08:07, 21 October 2012 (UTC) | |
| 198 | + | ||
| 199 | + | --- | |
| 200 | + | *From the Free Pascal wiki, page "Typecast/de", as it stood on 2016-06-13 after a change by FTurtle, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).* |
