% This file is embedded in datatool-user.pdf version 3.4.5 2026-08-23
% 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}
