% This file is embedded in datatool-user.pdf version 3.4.2 2025-11-06
% Example 108 Loading Data With No Parsing and Columns Identified as Decimal
% Label: "ex:loadxynoparsedecimal"
% arara: pdflatex
% arara: pdfcrop
\documentclass[12pt]{article}
\pagestyle{empty}
\begin{filecontents}[noheader,overwrite]{xydata.csv}
X,Y
-3.5,-2.75
-3,3
-2.5,-1
-1,1.5
1,-4.2
2.6,1.8
3.2,-0.4
\end{filecontents}

\usepackage{datatool}
\DTLsetup{store-datum}
\DTLread[
 name=xydata,
 format=csv,
 csv-content=no-parse,
 data-types=decimal
]{xydata.csv} 
\begin{document}
\DTLsortdata{xydata}{Y}
\DTLdisplaydb{xydata} 
\end{document}
