Basic HTML version of Foils prepared Sept 20 97

Foil 16 Arithmetic Operators

From Tutorial on PERL Computational Science for Information Age Course CPS616 -- Sept 20 97. by Geoffrey C. Fox,Nancy McCracken,Tom Scavo


+ Addition as in $x + $y;
- Subtraction as in $x - $y;
* Multiplication as in $x * $y;
/ Division as in $x / $y;
% Modulus as in $x % $y; # 10%3 is 1 etc.
** Power as in $x**$y;



© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Sun Sep 21 1997