Previous: , Up: Math And Text Utilities   [Index]


13.1.2 Arithmetic Functions

add_c

cardinal add_c(cardinal &p, cardinal q);

is the sum of p and q, sets p as the same sum (like (p += q))

add_i

integer add_i(integer &m, integer n);

is the sum of m and n, sets m as the same sum (like (m += n))

add_r

real add_r(real &x, real y);

is the sum of x and y, sets x as the same sum (like (x += y))

max_c

cardinal max_c(cardinal &p, cardinal q);

is the maximum of p and q, sets p as the same

max_i

integer max_i(integer &m, integer n);

is the maximum of p and q, sets p as the same

max_r

real max_r(real &x, real y);

is the maximum of p and q, sets p as the same

min_c

cardinal min_c(cardinal &p, cardinal q);

is the minimum of p and q, sets p as the same

min_i

integer min_i(integer &m, integer n);

is the minimum of p and q, sets p as the same

min_r

real min_r(real &x, real y);

is the minimum of p and q, sets p as the same

sub_c

cardinal sub_c(cardinal &p, cardinal q);

is the difference of p and q, sets p as the same difference (like (p -= q))

sub_i

integer sub_i(integer &m, integer n);

is the difference of m and n, sets m as the same difference (like (m -= n))

sub_r

real sub_r(real &x, real y);

is the difference of x and y, sets x as the same difference (like (x -= y))


Previous: Math And Text Functions, Up: Math And Text Utilities   [Index]