Basic HTML version of Foils prepared March 30 97

Foil 14 Arithmetic Operators

From PERL4 Tutorial for CPS616 Computational Science for Information Age Course CPS616 -- February 1995. by Geoffrey C. Fox


+ 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 Sat Sep 6 1997