Floating point arithmetic.

I have written a system which uses high precision Decimals. Backtrader uses Floats.

I run a backtest through my system to verify the output of BT.

To do this, I must convert the source prices used in BT from Floats into Decimals.

After some iterations, with spreads involving subtraction and division, my indicators begin to diverge, presumably due to the increased rounding accuracy.

I would prefer to convert BT to use Decimals and this is why I asked the question.

Without searching the entire codebase for occurences of all numbers, I would like to ask the creator of this library for his view on how best to do this.