Question: round function

Being an absolut newbie to Maple I find some of the functions a bit strange and difficult.

One of the things is e.g. rounding numbers.

In Pyton and other languages it is quite simple and straightforward when rounding a number.

round(number, digits)

If you have digits = 0 then you get an integer, otherwise you get a number with the number of digits chosen.

In Maple the round function is just for rounding to an integer.

To round to something else currently I don't really know what I would use. There is the evalf function, which one can use like evalf[digits](number), but that doesn't give you the value with digits. It gives you a number with significant digits, which means, also including the numbers before the comma delimiter.

Python
round(15.76543,2) = 15.77

Maple
evalf[2](15.76543) = 16

Wouldn't it be much easier to expand the functionality of the round function in Maple?

 

 

Please Wait...