diff --git a/amqtt/codecs_amqtt.py b/amqtt/codecs_amqtt.py index 81b2661..1db2d9c 100644 --- a/amqtt/codecs_amqtt.py +++ b/amqtt/codecs_amqtt.py @@ -144,6 +144,6 @@ def int_to_bytes_str(value: int) -> bytes: def float_to_bytes_str(value: float, places:int=3) -> bytes: """Convert an float value to a bytes array containing the numeric character.""" - quant = Decimal(f"0.{"".join(['0' for i in range(places-1)])}1") + quant = Decimal(f"0.{''.join(['0' for i in range(places-1)])}1") rounded = Decimal(value).quantize(quant, rounding=ROUND_HALF_UP) return str(rounded).encode("utf-8")