% This file is embedded in datatool-user.pdf version 3.4.2 2025-11-06
% Example 15 Test for Currency
% Label: "ex:ifcurr"
% arara: pdflatex
% arara: pdfcrop
\documentclass[12pt]{article}
\pagestyle{empty}
\usepackage{datatool-base} 
\begin{document}
\$5.99: \DTLifcurrency{\$5.99}{currency}{not currency}. 

\DTLcurrency{5.99}: \DTLifcurrency{\DTLcurrency{5.99}}{currency}{not currency}. 

\pounds5.99: \DTLifcurrency{\pounds5.99}{currency}{not currency}. 

\textsterling5.99: \DTLifcurrency{\textsterling5.99}{currency}{not currency}. 

\$6.99: \DTLifcurrencyunit{\$6.99}{\$}{dollars}{not dollars}. 

\newcommand{\cost}{\pounds10.50}% 
 \cost: \DTLifcurrencyunit{\cost}{\pounds}{pounds}{not pounds}. 

US\$5.99: \DTLifcurrency{US\$}{currency}{not currency}. 

\DTLnewcurrencysymbol{US\$}% 
 US\$5.99: \DTLifcurrency{US\$}{currency}{not currency}. 
\end{document}
