def round_to_1_decimal(value): """ Round to one decimal. """ return value.quantize(D('0.1'), rounding=ROUND_HALF_UP)