Replaced round() with isnear() function

Python 3 makes round behavior troublesome: returned more digits than
requested, probably because of float/decimal differences.