From 6cc56430a361a3c0fb75d352ae7a1b7776f961bf Mon Sep 17 00:00:00 2001 From: Houtan Bastani <houtan@dynare.org> Date: Mon, 5 Aug 2019 16:31:08 -0400 Subject: [PATCH] macro processor doc: update for changes 5fc83fad293379198f28a7a683aa0361f0ffb9d5 to b3798a0baacf138c389e9969f5a41cff97b58839 --- doc/macroprocessor/macroprocessor.tex | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/doc/macroprocessor/macroprocessor.tex b/doc/macroprocessor/macroprocessor.tex index 76380441..787e3d68 100644 --- a/doc/macroprocessor/macroprocessor.tex +++ b/doc/macroprocessor/macroprocessor.tex @@ -149,6 +149,15 @@ \item array \item function \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{(int) 3.9} $\rightarrow$ \texttt{3} + \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} + \end{itemize} \end{itemize} \end{frame} -- GitLab