Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am trying to do some basic calculations (mostly finding the median of a range of values) using gnumeric. Unfortunately, this is giving me a hard time. Consider the following data:

0.04 0.04 0 0 0.08
0.07 0.03 0 0.01 0.11
0.05 0.04 0 0 0.09
0.06 0.03 0 0.01 0.1
0.05 0.04 0 0 0.09
0.07 0.03 0 0.01 0.11
0.06 0.03 0 0 0.09
0.07 0.03 0 0.01 0.11
0.05 0.04 0 0 0.09
0.06 0.03 0 0 0.09

When I try to calculate the median using a range by issuing =median(A1:A10), gnumerics result is #NUMBER, which I don't understand. The result is the same when using the syntax =median(A1;A2;A3;..). If I try to compute the sum by using =sum(A1:A10), the result is 0. What am I doing wrong? Do I have to format the columns in a specific way to make this work?

share|improve this question

1 Answer 1

up vote 0 down vote accepted

The answer to this mistery is simple: gnumeric here uses , as the decimal separator, not .. In gnumeric, the decimal separator is set by the locale. If you want to use another decimal separator, simply use gnumeric with another locale, e.g. use LC_NUMERIC=C.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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