% This file is embedded in datatool-user.pdf version 3.4.2 2025-11-06
% Example 28 Numerical Comparisons (Parsed)
% Label: "ex:DTLifnum"
% arara: pdflatex
% arara: pdfcrop
\documentclass[12pt]{article}
\pagestyle{empty}
 \usepackage[math=l3fp]{datatool-base} 
\begin{document}
$1,234.0 = 1234$? \DTLifnumeq{1,234.0}{1234}{true}{false}. 

$\$12.00 = \pounds12$? \DTLifnumeq{\$12.00}{\pounds12}{true}{false}. 

$\$10.50 < \pounds10$? \DTLifnumlt{\$10.50}{\pounds10}{true}{false}. 

$1,000.0 > 1,000$? \DTLifnumgt{1,000.0}{1,000}{true}{false}. 

$1000 < \$1,000.00 < 2000$? \DTLifnumopenbetween{\$1,000.00}{1000}{2000}{true}{false}. 

$1000 \leq \$1,000.00 \leq 2000$? \DTLifnumclosedbetween{\$1,000.00}{1000}{2000}{true}{false}. 
\end{document}
