# datatool and pgfmath option [closed]

Compiling this file

\documentclass{article}
%\usepackage[math=fp]{datatool}
\usepackage[math=pgfmath]{datatool}

\DTLloaddb{scores}{sample-student-records.csv} % http://www.ctan.org/tex-archive/macros/latex/contrib/datatool/samples

\begin{document}

\DTLmeanforcolumn{scores}{Assignment 1}{\averagescore}%
\averagescore\%.

\end{document}


I get

...

! Missing number, treated as zero.
<to be read again>
p
l.11 ...olumn{scores}{Assignment 1}{\averagescore}
%
! Undefined control sequence.
<argument> ...@tmpcpz 0}\let \@dtl@chopzeroesnext
=\@dtl@gobbletonil "
l.11 ...olumn{scores}{Assignment 1}{\averagescore}
%
! Argument of \@dtl@gobbletonil has an extra }.
<inserted text>
\par
l.11 ...olumn{scores}{Assignment 1}{\averagescore}
%
Runaway argument?

...


but if I use the option math=fp everything is fine.

-
Looks like it is somehow related to the data you read from the csv file. So maybe you should provide us with some sample dataset from your file to make your example complete. –  Benedikt Bauer Oct 5 '12 at 18:31
add comment

## closed as too localized by Werner, percusse, Qrrbrbirlbel, zeroth, cgniederOct 8 '12 at 20:30

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

## 1 Answer

The version v2.12 of the package datatool solves this problem.

-
add comment