Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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.

share|improve this question

closed as too localized by Werner, percusse, Qrrbrbirlbel, zeroth, cgnieder Oct 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.

3  
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

1 Answer 1

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

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.