Floating-point equality check

Code reviewHard20 minCitadel and BlackRock style

Your task

Review this Python reconciliation check that a list of per-strategy allocation fractions sums to 1.0 before placing orders.

weights are fractions like [0.1, 0.2, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1] that mathematically total 1.0.