mes.c: add quotient and modulo.
This commit is contained in:
parent
87c52609ff
commit
b5ab19aab7
8
mes.c
8
mes.c
|
@ -1168,6 +1168,14 @@ divide (scm *x/*...*/)
|
||||||
return make_number (n);
|
return make_number (n);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
scm *
|
||||||
|
modulo (scm *a, scm *b)
|
||||||
|
{
|
||||||
|
assert (a->type == NUMBER);
|
||||||
|
assert (b->type == NUMBER);
|
||||||
|
return make_number (a->value % b->value);
|
||||||
|
}
|
||||||
|
|
||||||
scm *
|
scm *
|
||||||
multiply (scm *x/*...*/)
|
multiply (scm *x/*...*/)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue