diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2025-10-05 20:28:20 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2025-10-05 20:28:20 +0200 |
| commit | 198fe7a7cfad10d42be40aa8b7bc3e7f107ab04c (patch) | |
| tree | fc44b9555a1a354189b0c25f0cf614d9efa06c9b /Info/9/1/Datentyp_Formatierung/handout.tex | |
| parent | fc0bf73aa5b58c0d5d48e7b9ee1e9bd0eb2aa9d2 (diff) | |
| download | unterricht-198fe7a7cfad10d42be40aa8b7bc3e7f107ab04c.tar.gz unterricht-198fe7a7cfad10d42be40aa8b7bc3e7f107ab04c.zip | |
add minimal handout and improve slides
Diffstat (limited to 'Info/9/1/Datentyp_Formatierung/handout.tex')
| -rw-r--r-- | Info/9/1/Datentyp_Formatierung/handout.tex | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/Info/9/1/Datentyp_Formatierung/handout.tex b/Info/9/1/Datentyp_Formatierung/handout.tex new file mode 100644 index 00000000..edc2164b --- /dev/null +++ b/Info/9/1/Datentyp_Formatierung/handout.tex @@ -0,0 +1,77 @@ +\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}=\tikzmark{f}2*(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); +\node[text width=4cm, align=left] (fL) at (-2cm, -2cm) {kann Zahlen, Rechenzeichen (+, -, *, /) und Klammern enthalten}; +\draw (fL) -- (pic cs:f); +\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); +\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] + +\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} |
