previous chapterthe pico pagenext chapter


Arithmetic functions

Pico comes with the standard complement of native arithmetic functions and operators for addition, subtraction, multiplication, division and exponentiation. The following transcript illustrates the use of the two native additive operators:

Note that both the + and the - operator can be used as unary and binary operator. The multiplicative operators *, /, //, \\ and ^ are always binary:

A number of rules apply to the types of arguments of these operators:

These rules are illustrated by the following transcript:

 



previous chapterthe pico pagenext chapter