File:
[LON-CAPA] /
loncom /
html /
adm /
help /
tex /
Spreadsheet_HowTo.tex
Revision
1.6:
download - view:
text,
annotated -
select for diffs
Sun Jan 3 04:49:30 2016 UTC (8 years, 10 months ago) by
lira
Branches:
MAIN
CVS tags:
version_2_12_X,
version_2_11_X,
version_2_11_5_msu,
version_2_11_5,
version_2_11_4_uiuc,
version_2_11_4_msu,
version_2_11_4,
version_2_11_3_uiuc,
version_2_11_3_msu,
version_2_11_3,
version_2_11_2_uiuc,
version_2_11_2_msu,
version_2_11_2_educog,
version_2_11_2,
HEAD
minor wording change about string.
\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 as a string, enclose the entire
cell contents in quote marks.
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>