1# Copyright (C) 2007-2012, Parrot Foundation. 2 3=pod 4 5=head1 DESCRIPTION 6 7A tutorial lesson about Parrot's math operations. 8 9=head1 MATH OPERATIONS 10 11Many common math operations have simple operator syntax in 12PIR. Operators like C<+>, C<->, C</> and C<*> are all 13implemented in PIR, but so are a few less common ones such 14as C<<< << >>>, C<<< >> >>>, C<|>, C<&>, C<^> and C<%>. 15 16=cut 17 18.sub main :main 19 20 $I0 = 5 21 $I1 = $I0 + 2 22 print $I1 23 print "\n" 24 25 $N0 = 6.7 26 $N1 = $N0 - 1.5 27 print $N1 28 print "\n" 29 30.end 31 32# Local Variables: 33# mode: pir 34# fill-column: 100 35# End: 36# vim: expandtab shiftwidth=4 ft=pir: 37 38