1 / 17

Datentypen Genauigkeiten

Datentypen Genauigkeiten. Timo Damm. Bits and Bytes. Bit: Zwei Zustände [0;1] Nibble: 4 Bit Byte: 8 Bit und damit 2 8 =1024 Zustände Word: 16 Bit. 1 kB = 103 Byte = 1000 Byte 1 MB = 106 Byte = 1000000 Byte (Diskette 1,44 MB) 1 GB = 109 Byte (CD 0,8GB, DVD 4,7GB)

tomas
Télécharger la présentation

Datentypen Genauigkeiten

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. DatentypenGenauigkeiten Timo Damm

  2. Bits and Bytes • Bit: Zwei Zustände [0;1] • Nibble: 4 Bit • Byte: 8 Bit und damit 28=1024 Zustände • Word: 16 Bit • 1 kB = 103 Byte = 1000 Byte • 1 MB = 106 Byte = 1000000 Byte (Diskette 1,44 MB) • 1 GB = 109 Byte (CD 0,8GB, DVD 4,7GB) • … TB, PB, EB, ZB, YB

  3. Zahlendarstellungen Quelle: http://de.wikipedia.org/wiki/Oktalsystem

  4. Elementare Datentypen • Ganze Zahlen (INT, INTEGER, BIGINT, SMALLINT, …) 16..64 Bit, bei 32 Bit von (-231..231-1) • Natürliche Zahlen (BYTE, UNSIGNED, WORD, …) 8..64 Bit, bei 32 Bit von (0..232-1) • Festkommazahlen (DEC, DECIMAL, CURRENCY, …) wird per Stellenzahl gesetzt! • Zeichen (CHAR, CHARACTER) abhängig vom jeweiligen Zeichensatz! • Gleitkommazahlen (REAL, SINGLE, DOUBLE, EXTENDED, …) Quelle: http://de.wikipedia.org/wiki/Datentyp

  5. Integer Quelle: http://de.wikipedia.org/wiki/Integer_(Datentyp)

  6. Integer Quelle: http://de.wikipedia.org/wiki/Integer_(Datentyp)

  7. Gleitkommazahl Quelle: http://de.wikipedia.org/wiki/Gleitkommazahl f = s ∙ m ∙ 2e

  8. Gleitkommazahl Beispiel 24,7 dezimal nach IEEE 754, binary 32: 24 / 2 = 12 R 0 12 / 2 = 6 R 0 6 / 2 = 3 R 0 3 / 2 = 1 R 1 1 / 2 = 0 R 1 24dez = 11000 = 1,1000 *24 0,7 * 2 = 1,4 -> 1 0,4 * 2 = 0,8 -> 0 0,8 * 2 = 1,6 -> 1 0,6 * 2 = 1,2 -> 1 0,2 * 2 = 0,4 -> 0 0,7dez = 0,1 0110 0110 0110 … 24,7dez = 11000,10110011001100110… Quelle: http://de.wikipedia.org/wiki/Gleitkommazahl

  9. Gleitkommazahl Éxponent besitzt eine Verschiebung (Bias): +127 127 + 4 = 131dez 131 / 2 = 65 R 1 65 / 2 = 32 R 1 32 / 2 = 16 R 0 16 / 2 = 8 R 0 8 / 2 = 8 R 0 4 / 2 = 8 R 0 2 / 2 = 1 R 0 1 / 2 = 0 R 1 131dez = 10000011 0 10000011 10001011001100110011001 Quelle: http://de.wikipedia.org/wiki/Gleitkommazahl

  10. Dateiformat IGMAS alt 8 Vertices (Index,X,Z,Plane) 1 -1.00000 -1.10000 1 2 1.00000 -1.10000 1 3 -1.00000 -0.10000 1 4 1.00000 -0.10000 1 5 -1.00000 -1.10000 2 6 1.00000 -1.10000 2 7 -1.00000 -0.10000 2 8 1.00000 -0.10000 2 1 Layer boundaries C Layer boundary 1 (Dens. right, dens. left, Number of lines) 1 2 2 5 1 3 4 2 1 5 5 7 8 6 5 2 Vertical Planes (Y) -1.00 1.00 2 Densities 1.00 0.00

  11. Dateiformat IGMAS gmdf #gmdf_ascii unit Quader density 1.0 reference_density 0.0 section 1 point 0. -1. point 1. -1. coordinates 1 -1.00000 -1.10000 2 1.00000 -1.10000 3 -1.00000 -0.10000 4 1.00000 -0.10000 unit Quader Vertices 1 3 4 2   section 2 point 0. 1. point 1. 1. coordinates 1 -1.00000 -1.10000 2 1.00000 -1.10000 3 -1.00000 -0.10000 4 1.00000 -0.10000 unit Quader vertices 1 3 4 2 …

  12. Dateiformat IGMAS XML <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE geodata SYSTEM "geodata.dtd"> <!-- Created by IGMAS --> <geodata name="Synthetic Saltdome"> <projection name="unknown" units="km" /> <magnetic_field total_field="49441." units="nT" inclination=" 69." declination=" 1." /> <property name="Body" value="Permian"> <property name="Density" units="g/cm^3" value="-0.100" /> <property name="Susceptibility" units="SI" value="0.000000" /> <property name="Koenigsberg ratio" units="SI" value="0.000" /> <color red="0.25" green="1.00" blue="0.12" /> </property> <property name="Body" value="Triassic"> … </property>…

  13. Dateiformat IGMAS XML … <geometry> <cross_section x_start="0." y_start="-500." x_end="100." y_end="-500." name="First_section" /> <vertex id="1" x="-500." z="0." /> <vertex id="2" x="500." z="0." /> <vertex id="3" x="-500." z="-1.352" /> <vertex id="4" x="2.08999991" z="-1.20299995" /> <vertex id="5" x="4.02400017" z="-1.02499998" /> <vertex id="6" x="5.76200008" z="-0.907000005" /> <vertex id="7" x="7.67600012" z="-0.787999988" /> <vertex id="8" x="9.92199993" z="-0.759000003" /> <vertex id="9" x="12.1289997" z="-0.787999988" /> <vertex id="10" x="14.6490002" z="-0.995999992" /> <vertex id="11" x="17.1100006" z="-1.14400005" /> <vertex id="12" x="500." z="-1.41100001" /> <vertex id="13" x="-500." z="-2.50900006" /> ..

  14. Dateiformat IGMAS XML … <entry type="triangle_set" id_list=" 56 113 114 56 55 113 55 112 113 55 54 112 54 111 112 54 53 111 53 110 111 53 52 110 52 109 110 52 51 109 51 50 109 50 108 109 50 107 108 50 49 107 49 106 107 49 48 106 48 105 106 48 47 105 47 46 105 46 104 105 114 113 172 113 171 172 113 112 171 112 170 171 112 169 170 112 111 169 111 168 169 111 110 168 110 109 168 109 167 168 109 166 167 109 108 166 108 107 166 107 165 166 107 189 165 107 106 189 106 164 189 106 105 164 105 163 164 105 162 163 105 104 162 172 221 222 172 171 221 171 220 221 171 170 220 170 219 220 170 169 219 169 168 219 168 218 219 168 167 218 167 217 218 167 166 217 166 286 217 166 216 286 166 165 216 165 215 216 165 189 215 189 214 215 189 164 214 164 213 214 164 163 213 163 212 213 163 162 212 162 211 212 222 221 348 221 347 348 221 220 347 … </entry> </geometry> </geodata>

  15. Dateiformat IGMAS DTD <?xml version="1.0" encoding="UTF-8"?> <!-- edited with XML Spy v2.5 NT - http://www.xmlspy.com --> <!-- Entwurf einer Struktur fuer Geodaten - S. Schmidt, CAU Kiel. Last mod. 10-2006 --> <!-- Es fehlen noch Tetraeder, sonst sollte es vollstaendig sein. --> <!ELEMENT geodata ((geographic|projection), magnetic_field?, property*, (geometry|grid|bitmap)*)> <!ELEMENT geometry (cross_section?, vertex*, entry*)> <!ELEMENT vertex (property)*> <!ELEMENT entry (property*, vertex*)> <!ELEMENT geographic EMPTY> <!ELEMENT projection EMPTY> <!ELEMENT magnetic_field EMPTY> <!ELEMENT color EMPTY> <!ELEMENT cross_section EMPTY> <!ELEMENT grid (property)*> <!ELEMENT bitmap EMPTY> <!ELEMENT property ((property)*, color?)>

  16. Dateiformat IGMAS DTD …<!ATTLIST vertex id CDATA #IMPLIED x CDATA #REQUIRED y CDATA "0" z CDATA "0" modify (true | false) "true"> <!ATTLIST entry type (point_set | line | polygon | triangle_set) #REQUIRED scale CDATA "unknown" id_list CDATA #IMPLIED> <!ATTLIST cross_section x_start CDATA #REQUIRED y_start CDATA #REQUIRED x_end CDATA #REQUIRED y_end CDATA #REQUIRED offset CDATA #IMPLIED name CDATA #IMPLIED> <!ATTLIST grid order_123 (xyz|yxz|zxy|zyx|xzy|yzx) "xyz" …

  17. Dateiformat IGMAS DTD

More Related