% This file is embedded in datatool-user.pdf version 3.4 2025-04-03
% Example 13 Test for Integer Value
% Label: "ex:ifint"
% arara: pdflatex
% arara: pdfcrop
\documentclass[12pt]{article}
\pagestyle{empty}
\usepackage{datatool-base} 
\begin{document}
2536: \DTLifint{2536}{integer}{not an integer}. 

2536.0: \DTLifint{2536.0}{integer}{not an integer}. 

2,536: \DTLifint{2,536}{integer}{not an integer}. 

2,5,3,6: \DTLifint{2,5,3,6}{integer}{not an integer}. 

\DTLparse{\numA}{2,536}
\numA: \DTLifint{\numA}{integer}{not an integer}. 

\DTLsetnumberchars{.}{,}% 
 2,536: \DTLifint{2,536}{integer}{not an integer}. 

2.536: \DTLifint{2.536}{integer}{not an integer}. 

\numA: \DTLifint{\numA}{integer}{not an integer}. 
\end{document}