TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Compiling this file


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


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


I get


! Missing number, treated as zero.
<to be read again> 
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> 
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, clemens 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.

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

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.