% This file is embedded in datatool-user.pdf version 3.4.4 2026-07-31
% Example 14 Test for Real Value
% Label: "ex:ifreal"
% arara: pdflatex
% arara: pdfcrop
\documentclass[12pt]{article}
\pagestyle{empty}
\usepackage{datatool-base} 
\begin{document}
1000.0: \DTLifreal{1000.0}{real}{not real}. 

1,000: \DTLifreal{1,000}{real}{not real}. 

1,000.0: \DTLifreal{1,000.0}{real}{not real}. 

1e+3: \DTLifreal{1e+3}{real}{not real}. 

\DTLsetnumberchars{.}{,}% 
 1,000.0: \DTLifreal{1,000.0}{real}{not real}. 

1.000,0: \DTLifreal{1.000,0}{real}{not real}. 
\end{document}
