Datentypen Genauigkeiten

Slides:



Advertisements
Ähnliche Präsentationen
C Sharp (C#) Martin Saternus Senior Student Partner
Advertisements

Kurzwiederholung Informatik I, Teil I: Grundkonzepte
Wesen und „Unwesen“ der binären, dezimalen und hexadezimalen Zahlen
2.3 Kodierung von Zeichen 2.4 Kodierung von Zahlen
Forschungszentrum caesar
Hardware
Lehrmaterial Grundlagen EDV
6. Digitale Datendarstellung
Institut für Angewandte Mikroelektronik und Datentechnik
Übung 2.1 Information Wieviele Fragen benötigen Sie beim „Zahlenraten“
Lösung 3.1 Zahlensysteme Betrachten Sie den mit der Hamming-Methode codierten Code für „1000“ P-Bits falsch => Fehler bei bit
C.M. Presents D.A.R. und Ein Bisschen dies und das!
Java: Grundlagen der Sprache
Datentyp- umwandlung. Literale sind: Bezeichner mit einem festen Wert wie z.B:
SQL als Abfragesprache
Basisinformationstechnologie WS 2003/04 T.Schaßan
Dateisysteme.
VB .NET Proseminar .NET SS04.
Datenformate DVG Datenformate.
Logischen Grundverknüpfungen
RelationentheorieObjektorientierte Datenbanken AIFB SS Das ODMG-Objektmodell vs. relationales Modell (1/9) ODMG-Objektmodell Literal_type Atomic_literal.
2.2 Definition eines Datenbankschemas (SQL-DDL)
SQL-Datentypen INTEGER
FH-Hof Algorithmen und Datenstrukturen - Einführung Richard Göbel.
Die Festplatte externe Festplatte Interne Festplatte
Funktionsweise einer Kurvenscheibensteuerung.
Umrechnung Bit und Bytes und Bibytes
Datenformate: Text und Bild
© Alexander Schwing, 2010Institute of Visual Computing Informatik I for D-MAVT Exercise Session 2.
Hardware.
Sprachprobleme ?.
GWDG – Kurs Parallelrechner-Programmierung mit MPI MPI Punkt-zu-Punkt-Kommunikation Oswald Haan
Medizinische Informatik 2. Daten-Information-Wissen
Zuordnung CacheHauptspeicher
Einführung in die Programmierung Wintersemester 2008/09 Prof. Dr. Günter Rudolph Lehrstuhl für Algorithm Engineering Fakultät für Informatik TU Dortmund.
Kosten / Nutzen-Optimierung komplexer Floating-Point- Berechnungen unter Ausnutzung variabler Präzision Programming Language Design and Implementation.
Hardware.
Wer wird Millionär? Willkommen zu 50: Million ,000 13
Versuche alle Fragen richtig zu beantworten!
Das Innenleben des Computers
Vom Bit zum Byte.
Das Binär-System Alles ist davon abhängig, ob Strom fließt oder nicht!
Programmierung 1. Einführung Seite 1
Grundlegende Funktionsweise eines Computers
Grundlagen der Informatik
Variablen in Programmiersprachen
Technische Informatik II Übung 2: Konvertieren von Zahlen
Datentypen: integer, char, string, boolean
Praxismodul 7 Agenda für heute, 15. Juni, 2006 Dateiformate
Datentypen Überblick Datentypen Einfache / fundamentale Datentypen
BMEVIEEA100 Grundlagen der Programmierung
Speichergrößen in der digitalen Datenverarbeitung
Zeichenketten in PASCAL
EUI-64 Format. Die Interface-ID in einer IPv6 Adresse identifiziert ein einzelnes Endgerät an einem Link.
A) Erklären Sie den Datentyp char. b) Erklären Sie den Datentyp Struct c) Erklären Sie die Wirkungsweise des Operators & bei Anwendung im Zusammenhang.
Ein Vortrag von Marcel Siegert und Philipp Hoffmann
Vordefinierte Datentypen (1)
Medizinische Statistik und Informationsverarbeitung Quade Institut für Medizinische Biometrie, Informatik und Epidemiologie.
DIGITALE DATENTRÄGER Florian Erker KF-Uni Graz
Daten und Information in der ITG
X. Übungsblatt – Aufgabe X Die Zahlendarstellung im IEEE Standard 754 (single precision): Allgemein gilt: Z = (-1) V * (1 + M) * 2 (E - BIAS) a)Welche.
Hardware Ordne die Begriffe den Bildern zu!
oder: wie Computer die Welt sehen
Wikipedia zum „Byte“ Definitionen [Bearbeiten]
Präsentation Binär.
oder: wie Computer die Welt sehen
Datentypen: integer, char, string, boolean
Variable: typ varName = Wert Kiste: Art Aufschrift  Inhalt
Prof. J. Walter Bitte römische Zahlen im Geschichtsunterricht!
Information und Daten Digitalisierung
 Präsentation transkript:

Datentypen Genauigkeiten Timo Damm

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

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

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

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

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

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

Gleitkommazahl Quelle: http://de.wikipedia.org/wiki/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

Gleitkommazahl Quelle: http://de.wikipedia.org/wiki/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

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

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 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 …

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> …

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" /> ..

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>

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?)>

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" …

Dateiformat IGMAS DTD