from decimal import Decimal, ROUND_HALF_UP
def f2(val):
return Decimal(str(val)).quantize(Decimal('0.00'), rounding=ROUND_HALF_UP)