From 76f186faeb634ad7c55f3f5ed8e0b1674b2e9348 Mon Sep 17 00:00:00 2001 From: Houtan Bastani <houtan@dynare.org> Date: Tue, 6 Aug 2019 14:16:26 -0400 Subject: [PATCH] doc: modify macro processor casting examples --- doc/macroprocessor/macroprocessor.tex | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/macroprocessor/macroprocessor.tex b/doc/macroprocessor/macroprocessor.tex index 26ac1528..cd89bc55 100644 --- a/doc/macroprocessor/macroprocessor.tex +++ b/doc/macroprocessor/macroprocessor.tex @@ -151,11 +151,11 @@ \end{itemize} \item Variables/literals of the types listed above can be cast to other types \begin{itemize} - \item \texttt{(bool) 3.9} $\rightarrow$ \texttt{true} - \item \texttt{(double) ``3.9''} $\rightarrow$ \texttt{3.9} - \item \texttt{(array) 3.9} $\rightarrow$ \texttt{[3.9]} - \item \texttt{(double) [3.9]} $\rightarrow$ \texttt{3.9} - \item \texttt{(double) [3.9, 3]} $\rightarrow$ \texttt{error} + \item \texttt{(bool) -1 \&\& (bool) 2} $\rightarrow$ \texttt{true} + \item \texttt{(double) ``3.1''} $\rightarrow$ \texttt{3.1} + \item \texttt{(array) 4} $\rightarrow$ \texttt{[4]} + \item \texttt{(double) [5]} $\rightarrow$ \texttt{5} + \item \texttt{(double) [6, 7]} $\rightarrow$ \texttt{error} \end{itemize} \end{itemize} \end{frame} -- GitLab