% This file is embedded in datatool-user.pdf version 3.4.2 2025-11-06
% Example 16 Test for Numerical
% Label: "ex:ifnum"
% arara: pdflatex
% arara: pdfcrop
\documentclass[12pt]{article}
\pagestyle{empty}
\usepackage{datatool-base} 
\begin{document}
1,234: \DTLifnumerical{1,234}{numeric}{not numeric}. 

1,234.0: \DTLifnumerical{1,234.0}{numeric}{not numeric}. 

\$1,234.0: \DTLifnumerical{\$1,234.0}{numeric}{not numeric}. 

1.234,0: \DTLifnumerical{1.234,0}{numeric}{not numeric}. 

\DTLsetnumberchars{.}{,}% 
 1.234,0: \DTLifnumerical{1.234,0}{numeric}{not numeric}. 

Empty: \DTLifnumerical{}{numeric}{not numeric}. 
\end{document}
