aboutsummaryrefslogtreecommitdiff
path: root/Info/9/1/Datentyp_Formatierung/handout.tex
blob: cca0dee408c7a857f46a6e3ddbd451e1557797fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
\documentclass{handout}
\csname endofdump\endcsname
\usepackage{booktabs}

\title{Datentyp und Darstellung}
\setcounter{section}{1}

\begin{document}
\thispagestyle{empty}

\subsection{Daten und deren Darstellung}

\begin{tcolorbox}[title=Wiederholung: Formeln]

Mit Formeln können Berechnungen automatisiert durchgeführt werden. \\[0.3cm]

\centering
\textbf{\texttt{\tikzmark{s}=2\tikzmark{f}*(B\tikzmark{c}5+C5)}}

\begin{tikzpicture}[overlay, remember picture]
\node[text width=4cm, align=left] (sL) at (-5cm, 0) {immer mit \texttt{=} eingeleitet};
\draw (sL) -- ($(pic cs:s) - (0.1cm, -0.1cm)$);

\node[text width=4cm, align=left] (fL) at (-2cm, -2cm) {kann Zahlen, Rechenzeichen (+, -, *, /) und Klammern enthalten};
\draw (fL) -- ($(pic cs:f) - (0, 0.1cm)$);

\node[text width=5cm, align=left] (cL) at (4cm, -1.5cm) {Zellbezeichner können als \textbf{Parameter} (Platzhalter für Eingabewerte) verwendet werden. Bei der Auswertung werden die Zellbezeichner durch die aktuellen Zellinhalte ersetzt.};
\draw (cL) -- ($(pic cs:c) - (0, 0.1cm)$);
\end{tikzpicture}
\vspace{3.75cm}
\end{tcolorbox}

\subsubsection*{Datentypen}

\begin{merke}
\large
Mit der \textbf{Formatierung} von Zellen wird u.a. deren \pgap{\Huge Datentyp} festgelegt. \\[0.2cm]
Der \textbf{Datentyp} legt fest, welche \pgap{\Huge Werte} angenommen werden können und welche \pgap{\Huge Operationen} möglich sind. \\[0.2cm]

\textbf{Wichtige Datentypen:} \\[0.2cm]

\centering
\begin{tabular}{l l l}
\toprule
Datentyp & Beispiel & Sinnvolle Operationen \\
\midrule
\psolution{\Huge Text} & Hallo & \psolution{keine} \\ 
Datum & \psolution{\Huge 20.09.2024} & \psolution{+, -} \\
\psolution{\Huge Zahl} & 1312,00 & \psolution{+,-,*,/} \\
\psolution{\Huge Uhrzeit} & 13:30 & \psolution{+, -} \\
\bottomrule
\end{tabular}
\end{merke}

\subsubsection*{Darstellung}

\begin{center}
\begin{tikzpicture}
\begin{class}[text width=4cm]{ZELLE}{0,0}
\attribute{Inhalt}
\attribute{Datentyp}
\attribute{Format}
\end{class}

\begin{object}[text width=4cm]{B3}{6cm,0}
\instanceOf{ZELLE}
\attribute{Inhalt = 100}
\attribute{Datentyp = Zahl}
\attribute{Format = Ganzzahl}
\end{object}

\node (darstellung) at (9.5cm, -1.5cm) {Darstellung};
\node[align=right, draw, minimum width=2cm, below=0.1cm of darstellung] {100};
\draw[blue] (B3.east) edge[bend left] (darstellung.north);
\end{tikzpicture}
\end{center}

Aus \pgap{\textbf{\Huge Inhalt}}, \pgap{\Huge \textbf{Datentyp}} und \pgap{\Huge \textbf{Format}} wird die \pgap{\Huge \textcolor{red}{\textbf{Darstellung}}} ermittelt.

\end{document}