File:
[LON-CAPA] /
loncom /
html /
adm /
help /
tex /
Spreadsheet_HowTo.tex
Revision
1.4:
download - view:
text,
annotated -
select for diffs
Mon Aug 23 16:16:18 2010 UTC (14 years ago) by
riegler
Branches:
MAIN
CVS tags:
version_2_11_1,
version_2_11_0_RC3,
version_2_11_0_RC2,
version_2_11_0_RC1,
version_2_11_0,
version_2_10_X,
version_2_10_1,
version_2_10_0_RC2,
version_2_10_0_RC1,
version_2_10_0,
loncapaMITrelate_1,
language_hyphenation_merge,
language_hyphenation,
HEAD,
BZ4492-merge,
BZ4492-feature_horizontal_radioresponse
Updating chapter 15 of cc manual.
\label{Spreadsheet_HowTo}
\textbf{Summing up columns}
To take the sum of column ``M'', for example, use \texttt{\&SUM(``M*'')}\index{SUM}
\noindent
\textbf{Spreadsheet Lists}
When you have a list of numbers in a cell, how it is displayed depends
on how you separate the numbers and how Perl interprets the results.
\texttt{35 45 12} will not generate any result because this is an
invalid Perl statement.
\texttt{35,45,12} will have a result of 12 because Perl has a comma
operator similar to the comma operator\index{comma operator} in C.
The comma operator is binary and returns the value on its right. Thus
\texttt{\$variable = 15, 26;} assigns \texttt{\$variable} the value
26. If you need the values to all be displayed, enclose the entire
cell contents in quote marks.
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>