A problem on round()


I want to keep it to two decimal places using round function. I see the following in Zerynth document.

a = round(450.449999999, 2)
When round function is used as above, I want to get 450.45.
However, when I print a, I still get 450.449999999
Is there any way to get 450.45? I use Zerynth 2.6.4 beta version


for truncating the number, you can use the formating as in:
print('%.2f' % a)
Since Ceil() and floor() returns integars, I think they are not useful in your case so I think you need to implement a simple function that rounds numbers as you want.