from decimal import Decimal
import decimal
context = decimal.getcontext()
context.rounding = decimal.ROUND_HALF_DOWN
x = Decimal('2.19')
y = Decimal('3.99')
print(round(x, 1))
print(round(y, 1))
a = Decimal('2.15')
b = Decimal('3.55')
print(round(a, 1))
print(round(b, 1))
'''
run:
2.2
4.0
2.1
3.5
'''