| 1 |
% This file is embedded in datatool-user.pdf version 3.4.3 2025-12-04 |
| 2 |
% Example 18 Test for Data Type |
| 3 |
% Label: "ex:ifcasedata" |
| 4 |
% arara: pdflatex |
| 5 |
% arara: pdfcrop |
| 6 |
\documentclass[12pt]{article} |
| 7 |
\pagestyle{empty} |
| 8 |
\usepackage{datatool-base} |
| 9 |
\begin{document} |
| 10 |
1,234: \DTLifcasedatatype{1,234}{string}{int}{real}{currency}. |
| 11 |
|
| 12 |
1,234.0: \DTLifcasedatatype{1,234.0}{string}{int}{real}{currency}. |
| 13 |
|
| 14 |
\$1,234: \DTLifcasedatatype{\$1,234}{string}{int}{real}{currency}. |
| 15 |
|
| 16 |
1,2,3,4: \DTLifcasedatatype{1,2,3,4}{string}{int}{real}{currency}. |
| 17 |
|
| 18 |
Empty: \DTLifcasedatatype{}{string}{int}{real}{currency}. |
| 19 |
\end{document} |