Generating equally-spaced floats with least rounding error

Chris Angelico rosuav at
Sat Sep 24 19:03:14 CEST 2011

On Sun, Sep 25, 2011 at 12:26 AM, Mel <mwilson at> wrote:
> low_limit + (total_width * i) / intervals

Definite improvement, if the range is comparatively small. Multiply
first, then divide.


More information about the Python-list mailing list