\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}