Hello,

my problem has been discussed before in this thread:

https://moodle.org/mod/forum/discuss.php?d=337142#p1360313

Unfortunately, the thread was ended before the important answer was given:

**How do we achieve rounding in the most standard fashion?**

**(I.e., **

**1.755 rounded to two decimalplaces yields 1.76**

**1.765 rounded to two decimalplaces yields 1.77**

**1.775 rounded to two decimalplaces yields 1.78**

**and so on.)**

All functions in Stack/Maxima that deal with any kind of rounding (round(x), decimalplaces(x,n),...) do bankers rounding (or nothing): e.g.

decimalplaces(1.755,2) yields 1.76

decimalplaces(1.765,2) yields 1.76

decimalplaces(1.775,2) yields 1.78

decimalplaces(1.785,2) yields 1.78

**EVEN STRANGER:**

decimalplaces(1.005,2) yields 1.0

decimalplaces(1.015,2) yields 1.01

decimalplaces(1.025,2) yields 1.02

decimalplaces(1.035,2) yields 1.03

So something is really buggy here!

If there at least was a simple function that only gives me the integer part of a decimal number without any rounding, then I would produce my own rounding function like in the old days.

Can anyone please help? Thank you.