A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2011-September/113652.html below:

[Python-Dev] range objects in 3.x

[Python-Dev] range objects in 3.x [Python-Dev] range objects in 3.xSteven D'Aprano steve at pearwood.info
Sat Sep 24 04:13:12 CEST 2011
Guido van Rossum wrote:
> On Fri, Sep 23, 2011 at 6:36 PM, Steven D'Aprano <steve at pearwood.info> wrote:
>> Ethan Furman wrote:
>>> A question came up on StackOverflow about range objects and floating point
>>> numbers.  I thought about writing an frange that did for floats what range
>>> does for ints,
>>
>> For what it's worth, here's mine:
>>
>> http://code.activestate.com/recipes/577068-floating-point-range/
> 
> I notice that your examples carefully skirt around the rounding issues.

I also carefully *didn't* claim that it made rounding issues disappear 
completely. I'll add a note clarifying that rounding still occurs and as 
a consequence results can be unexpected.

Thanks for taking the time to comment.


-- 
Steven




More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4