Skip to content

Generate.Range() accumulates floating point errors #4179

@swharden

Description

@swharden

#4119 was a great start, but I noticed that it produces unexpected results due to accumulated floating point error when I call:

double[] fractions = ScottPlot.Generate.Range(0, 1, 0.05);

I expect a value representing 100% but I never get one 😅

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions