Holger,
there are 'floor' and 'ceiling', which do what their names suggest.
(%i1) floor(-22/3);
(%o1) - 8
(%i2) ceiling(-22/3);
(%o2) - 7
They can deal with more than only rational numbers. Type
? floor
or
? ceiling
for more information.
Also there are 'fix' and 'entier' (two names for one function), which as far as I know do
nothing different than 'floor'.
Volker van Nek
Am 2 Jan 2008 um 11:45 hat Holger Schulz geschrieben:
> I haven't found functions for rounding/truncating rational numbers
> yet. Are there some? How are they called?
>
> Thanks
>
> hs
> _______________________________________________
> Maxima mailing list
> Maxima at math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima