Rounding solution that can be used with new native currency converter tool

Guys, that code works, I use it myself. If it does not work for you, show us your code, only then can we help you.