Python Decimal doesn\'t support being constructed from float; it expects that you have to convert float to a string first.
This is very inconvenient since standard
You can use JSON to accomplish it
import json from decimal import Decimal float_value = 123456.2365 decimal_value = json.loads(json.dumps(float_value), parse_float=Decimal)