Skip to content

Percentages reduce assert should have an epsilon check instead of checking if it's equal to 1 #19

@ghost

Description

I ran into an issue where these percentages:
percentages: [0.1,0.1,0.1,0.3, 0.3, 0.1]
were adding up to
1.0000000000000002
And triggering the assert on line 66.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions